der Threadtitel passt zu mir, darum erlaube ich mir mal mich hier einzuklinken. In diesem Sinne, tach.
Eigentlich bilde ich mir ein, brav nach dem Tutorial im Rootforum-Wiki vorgegangen zu sein, aber Einbildung ist scheinbar auch ne Bildung denn ich hab wohl was übersehn oder falschgemacht, es tut nicht so wie ich will.
System ist ein Debian Lenny auf einem OVH RPS III ( Linux version 2.6.27.10-grsec-xxxx-grs-ipv4-32 (
root@kernel-32.ovh.net) (gcc version 4.3.2 (Debian 4.3.2-1) ) #7 SMP Wed Sep 9 22:05:06 UTC 2009 ).
Installieren wollte ich postfix mit postfixadmin , und dovecot.
Hat imo auch soweit alles funktioniert wie im Tutorial beschrieben, funktioniert nur nicht so richtig.
Nicht so richtig bedeutet konkret:
#1 postfix nimmt Mails an, die an Systemuser gehen und stellt die soweit ersichtlich auch korrekt zu.
#2 postfix stellt keine Mails zu, die an über postfix-admin angelegte Mailboxen gehen. Die kommen als Bounce zurück (user unknown).
#3 postfix forwardet aber Emails, die im postfix-admin als Alias eingetragen sind.
ich kann mich per pop3 oder imap auf ein per postfix-admin angelegtes Mailkonto einloggen und von dort auch einwandfrei Mails versenden - nur der Empfang von Mails an die Adresse der so angelegten Mailbox funktioniert nicht, siehe #2.
postconf -n
Code: Select all
# postconf -n
allow_percent_hack = no
biff = no
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
disable_vrfy_command = yes
home_mailbox = Maildir/
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_size_limit = 102400000
mailq_path = /usr/bin/mailq
masquerade_exceptions = root
message_size_limit = 20480000
mydestination = $myhostname, $mydomain, localhost
mydomain = newhope-ev.de
myhostname = newhope-ev.de
mynetworks_style = host
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
recipient_delimiter = +
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_reverse_client_hostname, permit
smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, permit
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, permit
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, check_recipient_mx_access cidr:/etc/postfix/mx_access, reject_unauth_destination, check_recipient_access pcre:/etc/postfix/recipient_checks.pcre, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = $myhostname
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit
smtpd_tls_CAfile = /etc/postfix/ssl/demoCA/cacert.pem
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/ssl/server-crt.pem
smtpd_tls_dh1024_param_file = /etc/postfix/ssl/dh_1024.pem
smtpd_tls_dh512_param_file = /etc/postfix/ssl/dh_512.pem
smtpd_tls_key_file = /etc/postfix/ssl/server-key.pem
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/lib/postfix/smtpd_tls_session_cache
smtpd_use_tls = yes
unknown_local_recipient_reject_code = 550
virtual_alias_maps = proxy:mysql:/etc/postfix//mysql_virtual_alias_maps.cf
virtual_gid_maps = static:8
virtual_mailbox_base = /var/mail
virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 150
virtual_transport = dovecot
virtual_uid_maps = static:150
uid/gid stimmen
Code: Select all
x# id vmail
uid=150(vmail) gid=8(mail) Gruppen=8(mail)
master.cf dovecot zeile
Code: Select all
dovecot unix - n n - - pipe flags=DRhu user=vmail:mail argv=/usr/lib/dovecot/deliver -d $(recipient)
und das gleiche mit dovecot
Code: Select all
# dovecot -n
# 1.0.15: /etc/dovecot/dovecot.conf
base_dir: /var/run/dovecot/
log_timestamp: .%Y-%m-%d %H:%M:%S .
protocols: imaps pop3s imap pop3
listen(default): *:143
listen(imap): *:143
listen(pop3): *:110
ssl_listen(default): *:993
ssl_listen(imap): *:993
ssl_listen(pop3): *:995
ssl_ca_file: /etc/postfix/ssl/demoCA/cacert.pem
ssl_cert_file: /etc/postfix/ssl/server-crt.pem
ssl_key_file: /etc/postfix/ssl/server-key.pem
ssl_verify_client_cert: yes
login_dir: /var/run/dovecot//login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
first_valid_uid: 150
last_valid_uid: 150
mail_access_groups: mail
mail_location: maildir:/var/vmail/%d/%u
mail_debug: yes
maildir_copy_with_hardlinks: yes
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
pop3_uidl_format(default):
pop3_uidl_format(imap):
pop3_uidl_format(pop3): %08Xu%08Xv
auth default:
user: nobody
debug: yes
debug_passwords: yes
passdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-sql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 432
user: vmail
group: mail
beispielhafter auszug aus der mail.info beim versand an einen angelegten Account
Code: Select all
Oct 15 23:15:12 r28606 dovecot: auth(default): new auth connection: pid=18813
Oct 15 23:15:12 r28606 postfix/smtpd[18813]: connect from mail.gmx.net[213.165.64.20]
Oct 15 23:15:12 r28606 postfix/trivial-rewrite[18817]: warning: do not list domain newhope-ev.de in BOTH mydestination and virtual_mailbox_domains
Oct 15 23:15:12 r28606 postfix/smtpd[18813]: 88A4D7566D: client=mail.gmx.net[213.165.64.20]
Oct 15 23:15:12 r28606 postfix/cleanup[18818]: 88A4D7566D: message-id=<4AD790CC.8020803@gmx.de>
Oct 15 23:15:12 r28606 postfix/qmgr[18759]: 88A4D7566D: from=<$MEINEEMAILADRESSE@gmx.de>, size=890, nrcpt=1 (queue active)
Oct 15 23:15:12 r28606 postfix/trivial-rewrite[18817]: warning: do not list domain newhope-ev.de in BOTH mydestination and virtual_mailbox_domains
Oct 15 23:15:12 r28606 postfix/local[18819]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled
Oct 15 23:15:12 r28606 postfix/smtpd[18813]: disconnect from mail.gmx.net[213.165.64.20]
Oct 15 23:15:13 r28606 postfix/local[18819]: 88A4D7566D: to=<$ACCOUNTNAME@newhope-ev.de>, relay=local, delay=0.69, delays=0.36/0.01/0/0.32, dsn=5.1.1, status=bounced (unknown user: "$ACCOUNTNAME")
Oct 15 23:15:13 r28606 postfix/cleanup[18818]: 3709D7566F: message-id=<20091015211513.3709D7566F@newhope-ev.de>
Oct 15 23:15:13 r28606 postfix/bounce[18820]: 88A4D7566D: sender non-delivery notification: 3709D7566F
Oct 15 23:15:13 r28606 postfix/qmgr[18759]: 3709D7566F: from=<>, size=2615, nrcpt=1 (queue active)
Oct 15 23:15:13 r28606 postfix/qmgr[18759]: 88A4D7566D: removed
Oct 15 23:15:13 r28606 postfix/smtp[18821]: 3709D7566F: to=<$MEINEEMAILADRESS@gmx.de>, relay=mx1.gmx.net[213.165.64.102]:25, delay=0.49, delays=0.32/0.01/0.09/0.08, dsn=2.6.0, status=sent (250 2.6.0 Message accepted {mx106})
Oct 15 23:15:13 r28606 postfix/qmgr[18759]: 3709D7566F: removed
Kann mir bitte jemand auf die Sprünge helfen wo mein Fehler liegt? Wäre super. :)
gruß
kenshin-