Re: Piped Commands using virtual LDAP aliases
- Derek Yarnell wrote:
> On Jun 30, 2008, at 3:41 PM, mouss wrote:remove $alias_maps from virtual_alias_maps. These are two different
>> Derek Yarnell wrote:
>>> I am trying to get postfix to run a piped command from LDAP however
>>> I am having some troubles as it seems to always append the local
>>> host name to it so I am guess i am not even down the right path yet.
>>> I am trying to use nisMailAlias, is there anyone out there doing
>>> this an if so how?
>> if the above is not enough, try reading
> objectClass: top
> cn: test@...
> rfc822MailMember: "|/bin/true"
> [root@claven postfix]# postmap -q test@...
> I have also tried with and without quotes.
> [root@claven postfix]# grep 26F5918E35 /var/log/maillog
> Jul 1 10:00:43 claven postfix/smtpd: 26F5918E35:
> Jul 1 10:00:48 claven postfix/cleanup: 26F5918E35:
> Jul 1 10:00:48 claven postfix/qmgr: 26F5918E35:
> from=<derek@...>, size=391, nrcpt=1 (queue active)
> Jul 1 10:00:48 claven postfix/local: 26F5918E35:
> orig_to=<test@...>, relay=local, delay=14,
> delays=14/0.01/0/0.01, dsn=5.1.1, status=bounced (unknown user:
> Jul 1 10:00:48 claven postfix/bounce: 26F5918E35: sender
> non-delivery notification: BE60518E37
> Jul 1 10:00:48 claven postfix/qmgr: 26F5918E35: removed
> queue_directory = /var/spool/postfix
> command_directory = /usr/sbin
> daemon_directory = /usr/libexec/postfix
> mail_owner = postfix
> mydomain = mailman.umiacs.umd.edu
> myorigin = mailman.umiacs.umd.edu
> inet_interfaces = all
> mydestination = $myhostname, localhost.$mydomain, localhost,
> virtual_alias_maps = ldap:/etc/postfix/ldap-umiacs-mailman.conf
concepts. there is no command execution in virtual_alias_maps. Thus your
> unknown_local_recipient_reject_code = 450
> alias_maps = hash:/etc/aliases
> alias_database = hash:/etc/aliases
> debug_peer_level = 2
> debugger_command =
> xxgdb $daemon_directory/$process_name $process_id & sleep 5
> sendmail_path = /usr/sbin/sendmail.postfix
> newaliases_path = /usr/bin/newaliases.postfix
> mailq_path = /usr/bin/mailq.postfix
> setgid_group = postdrop
> html_directory = no
> manpage_directory = /usr/share/man
> sample_directory = /usr/share/doc/postfix-2.3.3/samples
> readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
> Derek T. Yarnell
> University of Maryland
> Institute for Advanced Computer Studies
- On Tue, Jul 01, 2008 at 05:36:23PM +0200, mouss wrote:
> >[root@claven postfix]# postmap -q test@...Also the lookup key for alias expansion in local(8) is just the user
> remove $alias_maps from virtual_alias_maps. These are two different
> concepts. there is no command execution in virtual_alias_maps. Thus your
> "|/bin/tru@..." problem.
name. Exactly as with the local aliases file:
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
- On Jul 1, 2008, at 11:36 AM, mouss wrote:Sorry for the confusion, i found what i was looking for.Aliases that I wanted to keep in ldap (even piped commands) can obviously only be in the form specifically of user (and not user@domain). The map should be in appened to the lookup on $alias_maps and not virtual_alias_maps.Again, sorry and thanks for the helpderek