Hi list,

I have configured an alternate transport route for mail going to
specific destination domains. I call this transport "slowsmtp".

My problem is that I see no evidence in my logs that email sent to the
specific domains uses "slowsmtp" route for delivery.

I have defined "slowsmtp" in "/etc/postfix/master.cf" like this:

[snip]
smtp      unix  -       -       -       -       -       smtp
slowsmtp  unix  -       -       -       -       -       smtp
[snip]

My "/etc/postfix/transport" looks like this:

example1.com   slowsmtp:
example2.com   slowsmtp:

My "postconf -n" like this:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
default_destination_rate_delay = 3s
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
mailbox_size_limit = 0
mydestination = myhost.mydomain.com, localhost.mydomain.com, localhost
myhostname = myhost.mydomain.com
mynetworks = 127.0.0.0/8, cidr:/etc/postfix/network_table.cidr
myorigin = /etc/mailname
readme_directory = no
recipient_delimiter = +
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP
smtpd_recipient_restrictions = reject_unknown_recipient_domain,
permit_mynetworks,    reject_unauth_destination,    reject
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
smtpd_use_tls = yes
transport_maps = hash:/etc/postfix/transport

An extract from my logs showing that "smtp" is used instead of
"slowsmtp". The line with "postfix/smtp[7913]" in it:

Mar 31 06:16:57 myhost postfix/smtpd[7934]: 1F6E8200F99:
client=smtphost1.foreigndomain.com.hu[DD.DD.DDD.DD]
Mar 31 06:16:57 myhost postfix/cleanup[7902]: 1F6E8200F99: message-id=<>
Mar 31 06:16:57 myhost postfix/qmgr[5517]: 1F6E8200F99:
from=<u...@foreigndomain.com>, size=220513, nrcpt=1 (queue active)
Mar 31 06:16:58 myhost postfix/smtp[7913]: 1F6E8200F99:
to=<u...@example1.com>, relay=mx.example1.com[DDD.DDD.DD.DD]:25,
delay=1.8, delays=0.07/0/0.08/1.6, dsn=2.0.0, status=sent (250 2.0.0 OK)
Mar 31 06:16:58 myhost postfix/qmgr[5517]: 1F6E8200F99: removed

Is this normal that I in this log can't see that the email took
"slowsmtp" route instead of normal "smtp"?

TIA,
Mikael

Reply via email to