| |||||||||||||||||||||||||||||||
|
I used transport_maps multiplet time in the past but this time its-not working. When I send an email to asx, the mail is relayed to the primary MX fc6-pmx.asxnet.loc[192.168.23.17] instead of the server defined in transport_map 192.168.23.11 The server only relays mail and is not the final destination for any of them Here is my complete configuration, the log is at the end. Thanks for your help # postconf -n -c /kolab/etc/postfix_front/ alias_database = alias_maps = broken_sasl_auth_clients = yes command_directory = /kolab/sbin config_directory = /kolab/etc/postfix_front content_filter = smtpdup:127.0.0.1:10035 daemon_directory = /kolab/libexec/postfix default_privs = kolab-n disable_mime_input_processing = yes mail_owner = kolab masquerade_domains = message_size_limit = 20971520 mydestination = mydomain = asxnet.loc myhostname = fc6-eg.asxnet.loc mynetworks = 127.0.0.0/8 myorigin = $mydomain queue_directory = /kolab/var/postfix_front relay_domains = hash:$config_directory/relayed relay_recipient_maps = setgid_group = kolab-r smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination, reject_unlisted_recipient, check_policy_service unix:private/kolabpolicy smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = smtpd_sasl_security_options = noanonymous smtpd_sender_restrictions = permit_mynetworks, check_policy_service unix:private/kolabpolicy smtpd_starttls_timeout = 300s smtpd_timeout = 300s smtpd_tls_auth_only = yes smtpd_tls_cert_file = /kolab/etc/kolab/cert.pem smtpd_tls_key_file = /kolab/etc/kolab/key.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = no smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = yes syslog_name = postfix_front tls_random_source = dev:/dev/urandom # cat /kolab/etc/postfix_front/master.cf ========================================================================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (100) # ========================================================================== smtp inet n - n - - smtpd #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr tlsmgr unix - - n 1000? 1 tlsmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce trace unix - - n - 0 bounce verify unix - - n - 1 verify flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - - smtp #relay unix - - n - - smtp -o fallback_relay= #relay unix - - n - - smtp -o transport_maps=hash:/kolab/etc/postfix_front/transport #relay unix - - n - - smtp -o fallback_relay= relay unix - - n - - smtp showq unix n - n - - showq error unix - - n - - error local unix - n n - - local #virtual unix - n n - - virtual lmtp unix - - n - - lmtp anvil unix - - n - 1 anvil scache unix - - n - 1 scache #cyrus unix - n n - - pipe user=cyrus argv=/kolab/bin/cyrdeliver -e -r ${sender} -m ${extension} ${user} #uucp unix - n n - - pipe flags=Fqhu user=uucp argv=/kolab/bin/uux -r -n -z -a$sender - $nexthop!rmail ($recipient) #ifmail unix - n n - - pipe flags=F user=ftn argv=/kolab/bin/ifmail -r $nexthop ($recipient) #bsmtp unix - n n - - pipe flags=Fq. user=foo argv=/kolab/bin/bsmtp -f $sender $nexthop $recipient 465 inet n - n - - smtpd -o smtpd_tls_wrappermode=yes -o smtpd_sasl_auth_enable=yes post-cleanup unix n - n - 0 cleanup -o virtual_maps= kolabpolicy unix - n n - - spawn user=kolab-n argv=/kolab/etc/kolab/kolab_smtpdpolicy smtpdup unix - - n - 10 smtp -o smtp_send_xforward_command=yes -o disable_mime_output_conversion=yes -o smtp_generic_maps= -o smtp_connection_cache_on_demand=no #normaly only relayed domain will reach this port 10036 127.0.0.1:10036 inet n - n - 10 smtpd -o content_filter= -o receive_override_options=no_unknown_recipient_checks,no_header_body_checks -o smtpd_helo_restrictions= -o smtpd_client_restrictions= -o smtpd_sender_restrictions= -o smtpd_recipient_restrictions=permit_mynetworks,reject -o mynetworks=127.0.0.0/8 -o smtpd_authorized_xforward_hosts=127.0.0.0/8 # cat /kolab/etc/postfix_front/relayed asxnet.loc anything mydomain.loc anything alpha.loc anything gamma.loc anything titi.loc anything beta.loc anything # cat /kolab/etc/postfix_front/transport asxnet.loc relay:[192.168.23.11] .asxnet.loc relay:[192.168.23.11] beta.loc relay:[192.168.23.11] .beta.loc relay:[192.168.23.11] HERE are the DSN MX entries : beta.loc. 86400 IN MX 10 fc6-pmx.asxnet.loc. beta.loc. 86400 IN MX 20 fc6-eg.asxnet.loc. fc6-pmx.asxnet.loc. 86400 IN A 192.168.23.17 fc6-eg.asxnet.loc. 86400 IN A 192.168.23.18 max.asxnet.loc. 86400 IN A 192.168.23.11 HERE is the postfix log Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/smtpd[19758]: connect from localhost.localdomain[127.0.0.1] Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/smtpd[19758]: 5918866F3B: client=localhost.localdomain[127.0.0.1] Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/cleanup[19760]: 5918866F3B: message-id=<1413.192.168.23.23.1184942669.squirrel> Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/qmgr[17008]: 5918866F3B: from=<asx>, size=912, nrcpt=1 (queue active) Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/smtpd[19758]: disconnect from localhost.localdomain[127.0.0.1] Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/smtpd[19762]: connect from localhost.localdomain[127.0.0.1] Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/smtpd[19762]: 7E80066F71: client=localhost.localdomain[127.0.0.1] Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/cleanup[19760]: 7E80066F71: message-id=<1413.192.168.23.23.1184942669.squirrel> Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/qmgr[17008]: 7E80066F71: from=<asx>, size=1256, nrcpt=1 (queue active) Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/smtp[19761]: 5918866F3B: to=<asx>, relay=127.0.0.1[127.0.0.1], delay=0, status=sent (250 Ok) Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/qmgr[17008]: 5918866F3B: removed Jul 20 16:44:29 fc6-eg.asxnet.loc <info> postfix_front/smtpd[19762]: disconnect from localhost.localdomain[127.0.0.1] Jul 20 16:44:30 fc6-eg.asxnet.loc <info> postfix_front/smtp[19766]: 7E80066F71: to=<asx>, relay=fc6-pmx.asxnet.loc[192.168.23.17], delay=1, status=sent (250 2.0.0 Ok: queued as 7975A9511F) Jul 20 16:44:30 fc6-eg.asxnet.loc <info> postfix_front/qmgr[17008]: 7E80066F71: removed -- -- Alain Spineux aspineux gmail com May the sources be with you
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com