staging.inyokaproject.org

The Über Mail-Server - Next generation ISP-like Tutorial

Status: Ungelöst | Ubuntu-Version: Ubuntu 10.04 (Lucid Lynx)
Antworten |

Nefarius

(Themenstarter)
Avatar von Nefarius

Anmeldungsdatum:
11. Dezember 2008

Beiträge: 1275

Hallo!

Freut mich dass es dir gefällt, es ist leider mittlerweile - wie du festgestellt hast - etwas eingerostet. Ich möchte mich ungern auf einen Termin festlegen, wann ich wieder dazu komme es zu aktualisieren. Leider bin ich im Moment viel mobil unterwegs und VMs und mein Laptop + mobiles Internet habe sich nicht so gern 😉 Ja, ich habe mir auch VimbAdm angesehen und finde es super. Muss mir auch noch überlegen wie ich das einbaue. Der Bestand an Mail-Server Tutorials soll ja nicht zu weit auseinander laufen 😉

@nilsja: das ist ein 3rd party repo, das ist bestimmt nur für x86 und amd64 kompiliert, das muss auch aktualisiert werden. Nimm die offiziellen Paketquellen!

MfG,
Nefarius

xpsenergy

Anmeldungsdatum:
5. April 2012

Beiträge: Zähle...

Hallo, Also ich bin das Tut durchgegangen und alles erstmal nach Plan installiert. Nutze ein Debian 6.0.6 System mit einem Rootserver im 127.0.0.0 bereich. FQDN ist eine mail.example.net.

Ich versuche jetzt seit zwei Tagen und Nächten Nachrichte schicken und emfangen zu können , doch es klappt einfach nicht. main.cf

### main.cf ###
# See /usr/share/postfix/main.cf.dist for a commented, more complete version
# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
myorigin = /etc/mailname

### EDIT THE FOLLOWING LINES ###
myhostname = mail.example.net
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
virtual_minimum_uid = 150
virtual_uid_maps = static:150
virtual_gid_maps = static:150
mydestination = mxsrv01.example.net, localhost, examle2.net, example.net
relayhost =
#relay_domains =
inet_protocols = all
#inet_protocols = ipv4
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
### NO NEED TO EDIT AFTER THIS LINE ###
# (except smtpd_recipient_restrictions perhaps)

# Misc. MTA settings
smtpd_banner = $myhostname ESMTP
biff = no
# appending .domain is the MUA's job.
append_dot_mydomain = no
# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h
readme_directory = no
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
maximal_queue_lifetime = 3d
bounce_queue_lifetime = 2d
default_database_type = btree
message_size_limit = 26214400
2bounce_notice_recipient = postmaster

# SSL/TLS
# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.
smtpd_use_tls = yes
smtp_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_tls_auth_only = no

# Local Aliases
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

# Virtual Tables
virtual_mailbox_domains =
	proxy:mysql:/etc/postfix/maps/virtual_domain_maps.cf,
	proxy:mysql:/etc/postfix/maps/virtual_domain_alias_maps.cf
virtual_mailbox_maps =
	proxy:mysql:/etc/postfix/maps/virtual_mailbox_maps.cf
virtual_alias_maps =
	proxy:mysql:/etc/postfix/maps/virtual_alias_maps_combined.cf
#	proxy:mysql:/etc/postfix/maps/virtual_alias_maps.cf,
#	proxy:mysql:/etc/postfix/maps/virtual_alias_domain_maps.cf,
#	proxy:mysql:/etc/postfix/maps/virtual_alias_domain_mailbox_maps.cf,
#	proxy:mysql:/etc/postfix/maps/virtual_vacation_alias_maps.cf
	
# If you want to restrict envelope from adresses wrt. to the sasl login
# uncomment the next two lines as well as "reject_sender_login_mismatch" below.
#smtpd_sender_login_maps =
#	proxy:mysql:/etc/postfix/maps/virtual_smtpd_sender_login_maps.cf

# Local Mail Delivery (LDA)
# Use either the dovecot lda deliver, configured in the master.cf ...
virtual_transport = lmtp:unix:private/dovecot-lmtp
dovecot_destination_recipient_limit = 1
# or ltmp.
#virtual_transport = lmtp:unix:private/dovecot-lmtp

# Quota Support
#virtual_mailbox_limit = proxy:mysql:/etc/postfix/maps/virtual_mailbox_limit_maps.cf
#virtual_mailbox_limit_override = yes
#virtual_maildir_limit_message = "Sorry, the user's maildir has overdrawn his diskspace quota, please try again later."
#virtual_overquota_bounce = yes

# SASL
smtpd_sasl_type = dovecot
smtpd_sasl_path = private/auth
smtpd_sasl_auth_enable = yes

smtpd_reject_unlisted_recipient = no

# Recipient and Relay Checks - VERY IMPORTANT
smtpd_recipient_restrictions =
# Allow Postmaster, Abuse and other imporant role accounts
#        check_recipient_access btree:/etc/postfix/maps/access_recipient-rfc,
	check_recipient_access proxy:mysql:/etc/postfix/maps/access_recipient_roles.cf,
# White- and Blacklisting
        check_client_access btree:/etc/postfix/maps/access_client,
        check_helo_access btree:/etc/postfix/maps/access_helo,
        check_sender_access btree:/etc/postfix/maps/access_sender,
        check_recipient_access btree:/etc/postfix/maps/access_recipient,
# Allow no malformed mails
        reject_non_fqdn_sender,
        reject_non_fqdn_recipient,
        reject_unknown_sender_domain,
        reject_unknown_recipient_domain,
# Allow our authed. users
#        reject_sender_login_mismatch,
        permit_sasl_authenticated,
        permit_mynetworks,
# These rejects may have to be disabled, watch your logs
        reject_invalid_helo_hostname,
        reject_unknown_helo_hostname,
        reject_non_fqdn_helo_hostname,
        reject_unknown_client_hostname,
        reject_unknown_reverse_client_hostname,
# check RBLs
        reject_rbl_client ix.dnsbl.manitu.net,
        reject_rbl_client zen.spamhaus.org,
#       reject_rbl_client bl.spamcop.net,
#       reject_rbl_client dnsbl.njabl.org,
#       reject_rbl_client list.dsbl.org,
#       reject_rhsbl_client blackhole.securitysage.com,
#       reject_rhsbl_sender dsn.rfc-ignorant.org
# Greylisting
        check_policy_service inet:127.0.0.1:60000,
# Backup-MX: test existing relay recipients dynamically
#       reject_unverified_recipient,
# Backup-MX: allow
#       permit_mx_backup,
# No other relaying
        reject_unauth_destination,
        reject_unlisted_recipient,
# Policyd-Weight
#        check_policy_service inet:127.0.0.1:12525,
# allow the rest
        permit

proxy_read_maps =
     $local_recipient_maps
     $mydestination
     $virtual_alias_maps
     $virtual_alias_domains
     $virtual_mailbox_maps
     $virtual_mailbox_domains
     $relay_recipient_maps
     $relay_domains
     $canonical_maps
     $sender_canonical_maps
     $recipient_canonical_maps
     $relocated_maps
     $transport_maps
     $mynetworks
     $smtpd_sender_login_maps
     proxy:mysql:/etc/postfix/maps/access_recipient_roles.cf

# Milter settings
milter_default_action = accept
milter_protocol = 2

# Rate limiting
anvil_status_update_time = 600s
anvil_rate_time_unit = 60s
smtpd_client_connection_rate_limit = 60
smtpd_client_connection_count_limit = 25
smtpd_client_message_rate_limit = 1000
smtpd_client_recipient_rate_limit = 1000

# Vacation
transport_maps = btree:/etc/postfix/maps/transport
vacation_destination_recipient_limit = 1

# Custom reject code for unverified recipients
unverified_recipient_reject_code=577

# Mailarchive
mailarchive_destination_recipient_limit = 1
#recipient_bcc_maps = pcre:/etc/postfix/maps/recipient_bcc

# Dyn. Recipient Verification
address_verify_maps=btree:/var/spool/postfix/data/verify

versuch was zu senden mit Telnet

server:/etc/postfix# telnet localhost 25
Trying ::1...
Connected to localhost.
Escape character is '^]'.
220 mail.example.net ESMTP

Und dann kommt nichts mehr, also Hello fehlt komplett. mail.log Ausschnitt

lost connection with localhost[127.0.0.1] while receiving the initial server greeting

Wenn man eine Mail zum server schickt, an einem User der mit vboxadm erstellt wurde, kriegt man folgende Fehlermeldung zurück

Recipient address rejected: User unknown in local recipient table (state 13).

Eine Ahnung was da nicht läuft?

xpsenergy

Anmeldungsdatum:
5. April 2012

Beiträge: Zähle...

Und hier die dovecot

# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.6 
first_valid_uid = 150
last_valid_uid = 150
lda_mailbox_autocreate = yes
mail_gid = vmail
mail_plugins = " quota"
mail_uid = vmail
managesieve_notify_capability = mailto
managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave
namespace inbox {
  inbox = yes
  location = 
  mailbox Drafts {
    special_use = \Drafts
  }
  mailbox Junk {
    special_use = \Junk
  }
  mailbox Sent {
    special_use = \Sent
  }
  mailbox "Sent Messages" {
    special_use = \Sent
  }
  mailbox Trash {
    special_use = \Trash
  }
  prefix = 
}
passdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
plugin {
  quota = dict:User quota::file:%h/mail/dovecot-quota
  quota_rule = *:storage=500MB
  sieve = ~/.dovecot.sieve
  sieve_dir = ~/sieve
}
postmaster_address = postmaster@example.net
protocols = " imap lmtp sieve pop3"
service auth {
  unix_listener /var/spool/postfix/private/auth {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service lmtp {
  unix_listener /var/spool/postfix/private/dovecot-lmtp {
    group = postfix
    mode = 0660
    user = postfix
  }
}
service managesieve-login {
  inet_listener sieve {
    port = 4190
  }
}
ssl_cert = </etc/dovecot/dovecot.pem
ssl_key = </etc/dovecot/private/dovecot.pem
userdb {
  driver = prefetch
}
userdb {
  args = /etc/dovecot/dovecot-sql.conf
  driver = sql
}
protocol lmtp {
  mail_plugins = " quota sieve"
}
protocol lda {
  mail_plugins = " quota"
}
protocol imap {
  mail_plugins = " quota imap_quota"
}

vortex1

Anmeldungsdatum:
14. November 2013

Beiträge: Zähle...

hi. will it work with newer editions of ubuntu 12.04 and debian wheezy?

c.monty

Anmeldungsdatum:
23. August 2007

Beiträge: 277

Hallo!

Im Guide ist dieser Hinweis hervorgehoben: "Dass mir ja keiner auf die Idee kommt, mydestination mit dem FQDN zu füttern, dann knallts! Diese Variable ist in einem virtuellen Setup Tabu, wer sie trotzdem ändert: viel Spaß in Postfix' Log-Hölle! Wer hier nicht auf mich hört bekommt auch keinen Support und darf auch keine freundliche Antwort erwarten!"

Frage: Welcher Wert soll in der Konfig-Datei /etc/postfix/main.cf für den Parameter "mydestination" verwendet werden wenn nicht FQDN?

THX

Antworten |