root@mx01:~# postconf -n
address_verify_map = btree:/var/lib/postfix/verify
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
disable_vrfy_command = yes
hash_queue_names = ""
header_checks = regexp:/etc/postfix/header_checks
inet_interfaces = all
inet_protocols = ipv4
local_recipient_maps =
local_transport = error:No local mail delivery
mailbox_size_limit = 0
message_size_limit = 10485760
mydestination =
myhostname = mx01.reference.qc.ca
mynetworks = 127.0.0.0/8, 10.0.1.0/24
myorigin = reference.qc.ca
readme_directory = no
recipient_delimiter = +
relay_domains = mysql:/etc/postfix/mysql-relay_domains.cf
relay_recipient_maps = mysql:/etc/postfix/mysql-relay_recipients.cf
relayhost = 10.0.1.11
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name
smtpd_client_restrictions = permit_sasl_authenticated,
permit_mynetworks,      permit
smtpd_data_restrictions = permit_mynetworks,
permit_sasl_authenticated,      reject_unauth_pipelining
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions = permit_sasl_authenticated,
permit_mynetworks,      permit
smtpd_recipient_limit = 100
smtpd_recipient_restrictions = permit_mynetworks,
permit_sasl_authenticated,      reject_unknown_recipient_domain,
reject_unauth_destination,      reject_unverified_recipient,
whitelist_policy,       rbl_policy,     spf_policy,  permit
smtpd_restriction_classes = spf_policy,         rbl_policy,
whitelist_policy
smtpd_sender_restrictions = permit_mynetworks,
permit_sasl_authenticated,      reject_non_fqdn_sender,
reject_unknown_sender_domain,   permit
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
strict_rfc821_envelopes = no
transport_maps = mysql:/etc/postfix/mysql-transports.cf
unverified_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual


Good mail:
Jun 11 17:06:56 mx01 postfix/smtpd[1004]: connect from
mail-yw0-f52.google.com[209.85.213.52]
Jun 11 17:06:57 mx01 postfix/policy-spf[1189]: : SPF pass (Mechanism
'ip4:209.85.128.0/17' matched): Envelope-from: scapde...@gmail.com
Jun 11 17:06:57 mx01 postfix/policy-spf[1189]: handler
sender_policy_framework: is decisive.
Jun 11 17:06:57 mx01 postfix/policy-spf[1189]: : Policy action=PREPEND
Received-SPF: pass (gmail.com ... _spf.google.com: 209.85.213.52 is
authorized to use 'scapde...@gmail.com' in 'mfrom' identity (mechanism
'ip4:209.85.128.0/17' matched)) receiver=mx01.reference.qc.ca;
identity=mailfrom; envelope-from="scapde...@gmail.com";
helo=mail-yw0-f52.google.com; client-ip=209.85.213.52
Jun 11 17:06:57 mx01 postfix/smtpd[1004]: 8334656006D:
client=mail-yw0-f52.google.com[209.85.213.52]
Jun 11 17:06:57 mx01 postfix/cleanup[1005]: 8334656006D: hold: header
Received: from mail-yw0-f52.google.com (mail-yw0-f52.google.com
[209.85.213.52])??by mx01.reference.qc.ca (Postfix) with ESMTPS id
8334656006D??for <recipi...@domain.ca>; Mon, 11 Jun 2012 17:06 from
mail-yw0-f52.google.com[209.85.213.52]; from=<scapde...@gmail.com> to=<
recipi...@domain.ca > proto=ESMTP helo=<mail-yw0-f52.google.com>
Jun 11 17:06:57 mx01 postfix/cleanup[1005]: 8334656006D:
message-id=<CAPCv32TaWXKXgKa4cqbA7TdMXR02A2rvMARuoJjHC10ifkCP=w...@mail.gma
il.com>
Jun 11 17:06:57 mx01 MailScanner[24341]: New Batch: Scanning 1 messages,
3749 bytes
Jun 11 17:06:58 mx01 MailScanner[24341]: Virus and Content Scanning:
Starting
Jun 11 17:06:59 mx01 MailScanner[24341]: Baruwa: spam score setting
refresh time reached
Jun 11 17:06:59 mx01 MailScanner[24341]: Baruwa: Populating spam score
settings
Jun 11 17:06:59 mx01 MailScanner[24341]: Baruwa: no spam score settings
found using defaults
Jun 11 17:06:59 mx01 MailScanner[24341]: Baruwa: high spam score setting
refresh time reached
Jun 11 17:06:59 mx01 MailScanner[24341]: Baruwa: Populating high spam
score settings
Jun 11 17:06:59 mx01 MailScanner[24341]: Baruwa: no high spam score
settings found using defaults
Jun 11 17:07:00 mx01 MailScanner[24341]: Requeue: 8334656006D.A773F to
61C50561039
Jun 11 17:07:00 mx01 MailScanner[24341]: Uninfected: Delivered 1
messages
Jun 11 17:07:00 mx01 postfix/qmgr[28563]: 61C50561039:
from=<scapde...@gmail.com>, size=3015, nrcpt=1 (queue active)
Jun 11 17:07:00 mx01 MailScanner[24341]: Deleted 1 messages from
processing-database
Jun 11 17:07:00 mx01 MailScanner[24341]: Baruwa: Logging message
8334656006D.A773F to SQL
Jun 11 17:07:00 mx01 postfix/smtp[2003]: 61C50561039: to=<
recipi...@domain.ca>, relay=192.168.100.9[192.168.100.9]:25, delay=3.4,
delays=3.4/0/0/0, dsn=2.0.0, status=sent (250 2.0.0 4fd65e47-000321f5
Message accepted for delivery)
Jun 11 17:07:00 mx01 MailScanner[28694]: Baruwa: 8334656006D.A773F:
Logged to SQL
Jun 11 17:07:00 mx01 postfix/qmgr[28563]: 61C50561039: removed

Bad mail:
Jun 11 16:56:14 mx01 postfix/smtpd[855]: connect from
rfmnotes.fossnational.com[66.212.175.2]
Jun 11 16:56:15 mx01 postfix/smtpd[855]: NOQUEUE: reject: RCPT from
rfmnotes.fossnational.com[66.212.175.2]: 550 5.1.1 < recipient
@domain.ca>: Recipient address rejected: undeliverable address: host
10.0.1.11[10.0.1.11] said: 550 not local host domain.ca, not a gateway
(in reply to RCPT TO command); from=<sen...@anotherdomain.com>
to=<recipi...@domain.ca> proto=ESMTP helo=<rfmnotes.fossnational.com>
Jun 11 16:56:15 mx01 postfix/cleanup[662]: 2093E56006D:
message-id=<20120611205615.2093e560...@mx01.reference.qc.ca>
Jun 11 16:56:15 mx01 postfix/qmgr[28563]: 2093E56006D:
from=<double-bou...@reference.qc.ca>, size=246, nrcpt=1 (queue active)
Jun 11 16:56:15 mx01 postfix/smtp[800]: 2093E56006D:
to=<recipi...@domain.ca>, relay=192.168.100.9[192.168.100.9]:25,
delay=0.01, delays=0/0/0/0, dsn=2.1.5, status=deliverable (250 2.1.5
Recipient <recipi...@domain.ca> ok (local))
Jun 11 16:56:15 mx01 postfix/qmgr[28563]: 2093E56006D: removed
Jun 11 16:56:15 mx01 postfix/smtpd[855]: disconnect from
rfmnotes.fossnational.com[66.212.175.2]


-----Original Message-----
From: owner-postfix-us...@postfix.org
[mailto:owner-postfix-us...@postfix.org] On Behalf Of Wietse Venema
Sent: June-12-12 10:46 AM
To: Postfix users
Subject: Re: Postfix sometime ignoring transport map

Maxime Gaudreault:
> I tried to set a text transport map and postmap'd it instead of mysql 
> and I get the same issue.

Please show "postconf -n" output with the text transport maop, and
logging for a "good" delivery and for a "bad" delivery. Please indicate
which delivery is "good" and which is "bad".

        Wietse


Reply via email to