[postfix-users] von Doku "Generic mapping for outgoing SMTP mail" hat an patschen

Aleksandar Lazic (PF-U-DE) al-pfusde at none.at
Mo Jan 30 10:41:11 CET 2012


Hallo,

könnt Ihr mir bitte helfen, ich glaube ich übersehe was oder hab was 
falsch verstanden.

Ziel:

Alle Mails welche vom server.domain.at sollen an user at andere-domain.at 
gehen.

Lösung:

http://www.postfix.org/ADDRESS_REWRITING_README.html#generic

leider dürfte ich was falsch gemacht haben.

###
root at www:~# postconf mail_version
mail_version = 2.8.2
root at www:~# uname -a
Linux server.domain.at 2.6.38.2 #2 SMP Thu Aug 25 16:40:22 UTC 2011 
x86_64 x86_64 x86_64 GNU/Linux
cat /etc/issue
Ubuntu 11.04
###

###
postconf -n
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_size_limit = 0
mydestination = domain.at, , localhost
myhostname = server.domain.at
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
relayhost =
smtp_generic_maps = hash:/etc/postfix/stmp_generic
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
###

cat /etc/postfix/stmp_generic
###
@domain.at user at andere-domain.at
###

postmap /etc/postfix/stmp_generic

root at www:~# sendmail -bv test at domain.at
Mail Delivery Status Report will be mailed to <root>.
root at www:~# fg
tail -f /var/log/mail.log

###
Jan 30 10:30:44 ns61620 postfix/qmgr[2693]: 6F1688302A: from=<>, 
size=1835, nrcpt=1 (queue active)
Jan 30 10:30:44 ns61620 postfix/local[7583]: 6F1688302A: 
to=<root at server.domain.at>, relay=local, delay=950, delays=950/0/0/0, 
dsn=2.0.0, status=sent (delivered to mailbox)
Jan 30 10:30:44 ns61620 postfix/qmgr[2693]: 6F1688302A: removed
Jan 30 10:31:18 ns61620 postfix/pickup[2692]: 7CA948302A: uid=0 
from=<root>
Jan 30 10:31:18 ns61620 postfix/cleanup[7579]: 7CA948302A: 
message-id=<20120130093118.7CA948302A at server.domain.at>
Jan 30 10:31:18 ns61620 postfix/qmgr[2693]: 7CA948302A: 
from=<root at server.domain.at>, size=274, nrcpt=1 (queue active)
Jan 30 10:31:48 ns61620 postfix/smtp[11336]: connect to 
not-reachable.mx.net[<IP>]:25: Connection timed out
Jan 30 10:31:48 ns61620 postfix/smtp[11336]: connect to 
backup-mx.provider.net[<IP>]:25: Connection refused
Jan 30 10:31:48 ns61620 postfix/smtp[11336]: 7CA948302A: 
to=<test at domain.at>, relay=none, delay=30, delays=0/0.01/30/0, 
dsn=4.4.1, status=undeliverable (connect to 
backup-mx.provider.net[77.37.17.78]:25: Connection refused)
Jan 30 10:31:48 ns61620 postfix/cleanup[7579]: B9E6E8302E: 
message-id=<20120130093148.B9E6E8302E at server.domain.at>
Jan 30 10:31:48 ns61620 postfix/bounce[11376]: 7CA948302A: sender 
delivery status notification: B9E6E8302E
Jan 30 10:31:48 ns61620 postfix/qmgr[2693]: 7CA948302A: removed
Jan 30 10:31:48 ns61620 postfix/qmgr[2693]: B9E6E8302E: from=<>, 
size=1835, nrcpt=1 (queue active)
Jan 30 10:31:48 ns61620 postfix/local[7583]: B9E6E8302E: 
to=<root at domain.at>, relay=local, delay=0, delays=0/0/0/0, dsn=2.0.0, 
status=sent (delivered to mailbox)
Jan 30 10:31:48 ns61620 postfix/qmgr[2693]: B9E6E8302E: removed
###

Beim 'smtp -v' in master.conf wirkt es so als ob die smtp_generic_maps 
nicht angegriffen wird.
Vielen Dank für eure Hilfe

LG
Aleks


Mehr Informationen über die Mailingliste postfix-users