Hi,
My server acts as MX for a few domains and I have problem setting up
the transport map properly.
Any help is welcome.
TIA,
Olivier
-- postconf -n
alias_maps = hash:/etc/aliases, ldap:$config_directory/ldap_user_alias,
ldap:$config_directory/ldap_deleted_alias,
ldap:$config_directory/ldap_user_alias_fullname,
ldap:$config_directory/ldap_deleted_alias_fullname,
ldap:$config_directory/ldap_alias
broken_sasl_auth_clients = yes
command_directory = /usr/local/sbin
config_directory = /usr/local/ETC
content_filter = smtp-amavis:[localhost]:10024
daemon_directory = /usr/local/libexec/postfix
data_directory = /var/db/postfix
debug_peer_level = 2
home_mailbox = Maildir/
html_directory = /usr/local/share/doc/postfix
inet_interfaces = $myhostname, localhost
local_header_rewrite_clients = permit_mynetworks, permit_sasl_authenticated
local_recipient_maps = unix:passwd.byname, $alias_maps,
ldap:$config_directory/ldap_local_recipient
mail_owner = postfix
mailbox_command = /usr/local/bin/procmail -t -a $HOME
mailq_path = /usr/local/bin/mailq
manpage_directory = /usr/local/man
masquerade_domains = cs.ait.ac.th
masquerade_exceptions = root
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
mail.$mydomain, ufo.$mydomain, banyan.$mydomain, ldap.$mydomain,
door.$mydomain, firewall.$mydomain, dns.$mydomain, amanda.$mydomain,
database.$mydomain, sysl.$mydomain, mailback.$mydomain, csim.ait.asia
mydomain = cs.ait.ac.th
mynetworks = 192.41.170.0/24, 203.159.32.0/32
myorigin = $mydomain
newaliases_path = /usr/local/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/local/share/doc/postfix
recipient_canonical_maps = ldap:$config_directory/ldap_user_uncanonical,
ldap:$config_directory/ldap_deleted_uncanonical
>> relay_domains = cs.ait.ac.th, vgl-vforge.cs.ait.ac.th, ait.ac.th,
>> dec.ait.ac.th, interlab.ait.ac.th, gmseenet.org
>> relay_transport = /usr/local/etc/transport
sample_directory = /usr/local/etc
sender_canonical_maps = ldap:$config_directory/ldap_canonical
sendmail_path = /usr/local/sbin/sendmail
setgid_group = maildrop
smtp_tls_loglevel = 2
smtp_tls_security_level = may
smtp_tls_session_cache_database = btree:/var/run/postfix/smtp_scache
smtp_tls_session_cache_timeout = 3600s
smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)
smtpd_client_restrictions = check_client_access
cidr:$config_directory/amavis_bypass
smtpd_recipient_restrictions = permit_mynetworks
permit_sasl_authenticated reject_unauth_destination
check_policy_service inet:127.0.0.1:10023
smtpd_sasl_auth_enable = yes
smtpd_sasl_authenticated_header = yes
smtpd_sasl_path = private/auth
smtpd_sasl_type = dovecot
smtpd_tls_CAfile = /usr/local/ssl/ca/ait-itserv.crt
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /usr/local/ssl/crt/combined/mail.cs.ait.ac.th.pem
smtpd_tls_key_file = /usr/local/ssl/key/mail.cs.ait.ac.th.key
smtpd_tls_loglevel = 1
smtpd_tls_mandatory_exclude_ciphers = aNULL, MD5
smtpd_tls_received_header = yes
smtpd_tls_security_level = may
smtpd_tls_session_cache_database = btree:/var/run/postfix/smtpd_scache
smtpd_tls_session_cache_timeout = 3600s
tls_daemon_random_bytes = 32
tls_random_bytes = 32
tls_random_exchange_name = /var/run/postfix/prng_exch
tls_random_prng_update_period = 3600s
tls_random_reseed_period = 3600s
tls_random_source = dev:/dev/urandom
unknown_local_recipient_reject_code = 550
-- /usr/local/etc/transport
cs.ait.ac.th :
csim.ait.asia :
.cs.ait.ac.th :
.csim.ait.asia :
vgl-vforge.cs.ait.ac.th smtp:[vgl-vforge.cs.ait.ac.th]
ait.ac.th smtp:smtp.ait.ac.th
.ait.ac.th smtp:smtp.ait.ac.th
ait.asia smtp:smtp.ait.ac.th
.ait.asia smtp:smtp.ait.ac.th
dec.ait.ac.th : error:mail for dec.cs.sit.sc.th is not deliverable
interlab.ait.ac.th smtp:mail.interlab.ait.ac.th
gmseenet.org smtp:[gmseenet.org]
cluster.cs.ait.ac.th smtp:cluster.cs.ait.ac.th
adpc.net smtp:smtp.ait.ac.th
# some domain that cause problem via Uninet
#.austar.net.au smtp:[smtp.ait.ac.th]
#.usyd.edu.au smtp:[smtp.ait.ac.th]
#.csiro.au smtp:[smtp.ait.ac.th]
.springer-sbm.com smtp:smtp.ait.ac.th
.econ.tu.ac.th smtp:smtp.ait.ac.th
#austar.net.au smtp:[smtp.ait.ac.th]
#usyd.edu.au smtp:[smtp.ait.ac.th]
#csiro.au smtp:[smtp.ait.ac.th]
springer-sbm.com smtp:smtp.ait.ac.th
econ.tu.ac.th smtp:smtp.ait.ac.th
-- On the previous mail server (sendmail) /etc/mail/mailertable; I used
it to create the tansport table, with very little change. Th e below
configuration for sendmail has been working for ages.
# avoid ait mail to go through mailgate (twice over the leased line)
.ait.ac.th smtp:[smtp.ait.ac.th]
ait.ac.th smtp:[smtp.ait.ac.th]
.ait.asia smtp:[smtp.ait.ac.th]
ait.asia smtp:[smtp.ait.ac.th]
mail2.cs.ait.ac.th smtp:[mail2.cs.ait.ac.th]
# push thaigrid cluster email to the cluster
cluster.cs.ait.ac.th smtp:[cluster.cs.ait.ac.th]
# push vgl-gforge.cs.ait.ac.th email to the webeng
vgl-gforge.cs.ait.ac.th smtp:[vgl-gforge.cs.ait.ac.th]
# push gmseenet.org email to the gmseenet server
gmseenet.org smtp:[gmseenet.org]
.gmseenet.org smtp:[gmseenet.org]
# push interlab mail to them
interlab.ait.ac.th smtp:[mail.interlab.ait.ac.th]
# adpc.net is at AIT
adpc.net smtp:[smtp.ait.ac.th]
# some domain that cause problem via Uninet
#.austar.net.au smtp:[smtp.ait.ac.th]
#.usyd.edu.au smtp:[smtp.ait.ac.th]
#.csiro.au smtp:[smtp.ait.ac.th]
.springer-sbm.com smtp:[smtp.ait.ac.th]
.econ.tu.ac.th smtp:[smtp.ait.ac.th]
#austar.net.au smtp:[smtp.ait.ac.th]
#usyd.edu.au smtp:[smtp.ait.ac.th]
#csiro.au smtp:[smtp.ait.ac.th]
springer-sbm.com smtp:[smtp.ait.ac.th]
econ.tu.ac.th smtp:[smtp.ait.ac.th]
-- the error I get in the log:
Aug 29 19:17:35 mail postfix/smtpd[64896]: D43813A3830:
client=localhost[127.0.0.1]
Aug 29 19:17:35 mail postfix/cleanup[64891]: D43813A3830:
message-id=<[email protected]>
Aug 29 19:17:36 mail postfix/qmgr[64875]: D43813A3830:
from=<[email protected]>, size=1526, nrcpt=1 (queue active)
Aug 29 19:17:36 mail amavis[64008]: (64008-08) FWD via SMTP:
<[email protected]> -> <[email protected]>,BODY=7BIT 250 2.0.0 Ok,
id=64008-08, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as D43813A3830
Aug 29 19:17:36 mail amavis[64008]: (64008-08) Passed CLEAN, ORIGINATING/MYNETS
LOCAL [192.41.170.5] [192.41.170.5] <[email protected]> ->
<[email protected]>, Message-ID:
<[email protected]>, mail_id: QY3py5yTCBEt, Hits:
-, size: 661, queued_as: D43813A3830, 480 ms
Aug 29 19:17:36 mail postfix/smtp[64892]: 4D6593A381D: to=<[email protected]>,
relay=127.0.0.1[127.0.0.1]:10026, delay=0.83, delays=0.3/0.04/0/0.48,
dsn=2.0.0, status=sent (250 2.0.0 Ok, id=64008-08, from MTA([127.0.0.1]:10025):
250 2.0.0 Ok: queued as D43813A3830)
Aug 29 19:17:36 mail postfix/error[64900]: D43813A3830: to=<[email protected]>,
relay=none, delay=0.31, delays=0.22/0.07/0/0.02, dsn=4.3.0, status=deferred
(mail transport unavailable)