OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
Re: bounce mail for unknown users

From: fago (nupplagmx.at)
Date: Fri Jan 02 2004 - 10:37:21 CST


Am Fr, den 02.01.2004 schrieb Ralf Hildebrandt um 07:53:
> * fago <nupplagmx.at>:
> > i'm using maildrop as delivery agent. i have made a entry in the
> > master.cf file for it and i 've created a transport map, which uses
> > maildrop for delivery for all my mail.
> >
> > this works fine for me, but postfix is still trying to deliver mails for
> > unknown users. it seems to me, that the local_recipient_maps parameter
> > isn't used any more.
>
> Please show
> postconf -n
> output
>
> > so how can i setup postfix to bounce this mail?
>
> It IS bounced. What you want is NOT TO ACCEPT the mail in the first
> place.

postconf -n:

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/lib/postfix
debug_peer_level = 500
local_recipient_maps = ldap:accounts $virtual_maps
mailbox_command = /usr/bin/procmail
mailbox_size_limit = 0
mydestination = bimbo.lan, localhost
myhostname = bimbo.lan
mynetworks = 127.0.0.0/8
myorigin = $myhostname
notify_classes = resource, software
program_directory = /usr/lib/postfix
recipient_delimiter = +
relayhost =
setgid_group = postdrop
smtpd_banner = $myhostname ESMTP $mail_name (Linux/GNU)
transport_maps = hash:/etc/postfix/transport
virtual_gid_maps = static:1005
virtual_mailbox_base = /home/vmail/domains
virtual_mailbox_maps = ldap:accounts
virtual_maps = ldap:aliases hash:/etc/aliases
virtual_minimum_uid = 1005
virtual_uid_maps = static:1005

and my transport map:
bimbo.lan maildrop:
localhost maildrop:

so the virtual_* settings are not used any more because i use maildrop
for delivery.

maildrop is configured to look for the mail accounts at the ldap server,
which works fine. but postfix sends all mail to maildrop and so i get
this:

Jan 2 17:08:16 bimbo postfix/pipe[14027]: 8947D20B9D:
to=<hahabimbo.lan>, relay=maildrop, delay=63327, status=deferred
(temporary failure. Command output: /usr/bin/maildrop: Invalid user
specified. )

is there a way to configure postfix to not call maildrop for mails for
unknown users? or should i configure the pipe daemon to try delivering
only one time?