On Monday, March 30, 2009 at 17:07 CEST,
     Tom Diehl <tdi...@rogueind.com> wrote:

> I have a machine running postfix 2.2.8. I recently noticed that it is 
> putting messages in the queue for non-existent users and then trying
> to send bounce messages. Can someone please look at the following
> postconf -n output and tell me what I have screwed up? I really want
> to stop this but I am not seeing the problem.

"postconf -n" output is good, but without logs we can only guess what
the problem is.

> (foghorn pts2) # postconf -n alias_database = hash:/etc/postfix/aliases 
> hash:/etc/postfix/local.maps/local.aliases
> alias_maps = hash:/etc/postfix/aliases 
> hash:/etc/postfix/local.maps/local.aliases biff = no body_checks = 
> pcre:/etc/postfix/common.maps/body_checks bounce_queue_lifetime = 6h 

I suppose it was your mail client that screwed up these lines?

> content_filter = smtp-amavis:[127.0.0.1]:10024
> debug_peer_level = 2
> disable_vrfy_command = yes
> header_checks = pcre:/etc/postfix/common.maps/header_checks
> local_recipient_maps =

This explicitly disables recipient address validation for local domains
(i.e. domains listed in mydestination). This may or may not be the
reason for your bounces.

> mime_header_checks = regexp:/etc/postfix/common.maps/mime_header_checks
> mydestination = $myhostname localhost.$mydomain $mydomain mail.$mydomain 
> myhostname = mail.tntechs.com
> mynetworks = 192.168.0.0/24 127.0.0.0/8
> myorigin = $mydomain
> newaliases_path = /usr/bin/newaliases.postfix
> queue_directory = /var/spool/postfix
> readme_directory = /usr/share/doc/postfix-2.2.8-documentation/readme
> relay_domains = $mydestination 
> /etc/postfix/stnhbr.maps/relay_domains.stnhbr

Drop $mydestination from relay_domains. Currently harmless but also
quite useless.

Where's relay_recipient_maps? Lack of recipient address validation for
relay domains may or may not be the reason for your bounces.

[...]

-- 
Magnus Bäck
mag...@dsek.lth.se

Reply via email to