I responded to this thread immediately, but it's taken me until now,
pestering mail-abuse.com and my isp, to get the IP address of my
mailserver off the mail-abuse.com dul database, where it was
erroneously dropped. An interesting, if annoying, denial of service.
Still hoping that someone can help.
Tim
On 4 Aug 2009, at 01:41, Sahil Tandon wrote:
On Mon, 03 Aug 2009, Tim Coote wrote:
You've been using Postfix long enough to include 'postconf -n' and
the other
information as outlined in DEBUG_README. :-)
Fair point. I'd hoped it was easier than that. See below.
The bounce is sensible; you add a Delivered-To: header before the
mail is
actually delivered by the appropriate delivery agent, which by
design bounces
mail that is destined for f...@bar.org when f...@bar.org already
appears in the
Delivered-To:.
Maybe I wasn't clear enough about this. With no D flag, there's no
Delivered-To: at all. With the D flag it gets bounced. Therefore is
D flag creating >1 Delivered-To: ? Or I'm not looking at the right
thing (grep on file in Cyrus IMAP directory.
The header was not 'removed'; for example, local(8) and virtual(8)
still add
the header when delivering mail to intended recipients.
There's no particular reason for trying to generate the Delivered-
To:
header through the callout to the content filter, but it seemed an
easy
place to plug it in.
It is a bad place to plug it in given the way loop detection works.
Ok. So where's a good place? Maybe a moot point if it's actually
being put in but I cannot see it.
Show 'postconf -n', some log output of the bounce, and the rest of
master.cf.
--begin postconf (virtual alias domain redacted)--
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
debug_peer_list = spambayes
html_directory = no
inet_interfaces = all
inet_protocols = all
mail_owner = postfix
mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.5.6/README_FILES
recipient_delimiter = +
sample_directory = /usr/share/doc/postfix-2.5.6/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
unknown_local_recipient_reject_code = 550
virtual_alias_domains = xxx.yyy.zzz.tld
virtual_alias_maps = hash:/etc/postfix/virtual
-- end postconf--
-- begin master.cf (comment lines redacted, last line has the flags
definition)--
smtp inet n - n - - smtpd
-o content_filter=spambayes:dummy
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
proxywrite unix - - n - 1 proxymap
smtp unix - - n - - smtp
relay unix - - n - - smtp
-o smtp_fallback_relay=
showq unix n - n - - showq
error unix - - n - - error
retry unix - - n - - error
discard unix - - n - - discard
local unix - n n - - local
virtual unix - n n - - virtual
lmtp unix - - n - - lmtp
anvil unix - - n - 1 anvil
scache unix - - n - 1 scache
spambayes unix - n n - - pipe
flags=O user=tim argv=/usr/local/bin/sbwrapper.sh ${sender} $
{recipient}
-- end master.cf--
Sahil Tandon <sa...@tandon.net>
Tim Coote