[Postfixbuch-users] Virtuelle Domains und locale Mailzustellung mit fetchmail, procmail und deliver

Guido Mehnert guido at mehnert.tk
Mo Dez 26 20:22:15 CET 2011


Guten Tag,

ich habe alle Domains, die auf die IP meines kleinen vServers zeigen, 
wegen der einfacheren Administration mit "Postfix Admin", als virtuelle 
Domains mit virtuellen Postfächern angelegt.

Jetzt würde ich gerne erreichen wollen, dass postfix prüft, ob es local 
einen Benutzer mit einem Postfach gibt, um diesen dann die Mail mittels 
deliver zuzustellen. Deliver muss aber in jedem Fall _auch_ immer ins 
virtuelle Postfach liefern. Erst wenn deliver die Mail dort nicht 
zustellen kann, soll die Mail bouncen.

Für die virtuellen Postfächer funktioniert das ja, aber local werden die 
Mails nicht zugestellt. Und besonders blöd ist, dass wegen der fehlenden 
lokalen Zustellung ein Rückläufer erzeugt wird, der ünnötig ist, da ja 
die Mail auch ins virtuelle Postfach gewandert ist. Ich habe 
verschiedene Versuche unternommen, komme aber doch nicht weiter. 
Deswegen frage ich jetzt hier nach. Danke fürs Lesen.

Mit freundlichen Grüßen.
Guido

_Einlieferung:_
smtpd[22396]: A4AED187CA65: client=dynamischer Host[IP], 
sasl_method=PLAIN, sasl_username=user at domain.tld
cleanup[22401]: A4AED187CA65: message-id=<4EF87E2F.80703 at domain.tld>
qmgr[22392]: A4AED187CA65: from=<user at domain.tld>, size=653, nrcpt=1 
(queue active)
pipe[22402]: A4AED187CA65: to=<systemuser at domain.tld>, relay=dovecot, 
delay=0.13, delays=0.08/0.01/0/0.04, dsn=2.0.0, status=sent (delivered 
via dovecot service)

Die Mail kann abgeholt werden, verbleibt aber im System, weil der User 
mit der Abholung nicht auch zugleich die Löschung veranlasst.

_Einlieferung via Fetchmail_
dovecot: pop3-login: Login: user=<systemuser at domain.tld>, method=PLAIN, 
rip=IP, lip=IP, TLS
smtpd[224]: connect from localhost[127.0.0.1]
smtpd[224]: 918CC187CA65: client=localhost[127.0.0.1]
cleanup[22418]: 918CC187CA65: 
message-id=<4EF87E2F.80703 at domain.tld>qmgr[22392]: 918CC187CA65: 
from=<user at domain.tld>, size=1058, nrcpt=1 (queue active)
dovecot: POP3(systemuser at domain.tld): Disconnected: Logged out top=0/0, 
retr=1/738, del=0/1, size=722
smtpd[224]: disconnect from localhost[127.0.0.1]

cleanup[22418]: CB1AC187CA76: message-id=<4EF87E2F.80703 at domain.tld>
local[22420]: 918CC187CA65: to=<systemuser at localhost>, relay=local, 
delay=0., 	 delays=0.17/0.08/0/0.02, dsn=2.0.0, status=sent (forwarded 
as CB1AC187CA76)
qmgr[22392]: 918CC187CA65: removed
qmgr[22392]: CB1AC187CA76: from=<user at domain.tld>, size=1186, nrcpt=1 
(queue active)
pipe[22421]: CB1AC187CA76: to=<systemuser at domain.tld>, 
orig_to=<systemuser at localhost>, relay=dovecot, delay=0.1, 
delays=0.02/0/0/0.08, dsn=4.4.6, status=SOFTBOUNCE (mail forwarding loop 
for systemuser at domain.tld)

postconf -n
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
broken_sasl_auth_clients = yes
config_directory = /etc/postfix
disable_vrfy_command = yes
inet_interfaces = all
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = localhost
myhostname = mail.domain.tld
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
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
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Debian/GNU)
smtpd_recipient_restrictions =
check_recipient_access btree:/etc/postfix/access_recipient-rfc
reject_non_fqdn_sender
reject_non_fqdn_recipient
reject_unknown_sender_domain
reject_unknown_recipient_domain
permit_sasl_authenticated
permit_mynetworks
reject_unauth_destination
reject_rbl_client zen.spamhaus.org
reject_rbl_client ix.dnsbl.manitu.net
reject_unverified_recipient
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth_dovecot
smtpd_sasl_type = dovecot
smtpd_sender_login_maps = 
proxy:mysql:/etc/postfix/mysql_sender_login_maps.cf
smtpd_tls_cert_file = /etc/postfix/sslcert/mailserver.crt
smtpd_tls_key_file = /etc/postfix/sslcert/mailserver.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtpd_use_tls = yes
soft_bounce = yes
virtual_alias_maps = proxy:mysql:/etc/postfix/mysql_virtual_alias_maps.cf
virtual_gid_maps = static:5000
virtual_mailbox_base = /var/vmail/
virtual_mailbox_domains = 
proxy:mysql:/etc/postfix/mysql_virtual_domains_maps.cf
virtual_mailbox_limit = 112400000
virtual_mailbox_maps = 
proxy:mysql:/etc/postfix/mysql_virtual_mailbox_maps.cf
virtual_minimum_uid = 104
virtual_transport = dovecot
virtual_uid_maps = static:5000



Mehr Informationen über die Mailingliste Postfixbuch-users