LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   Postfix, deliver to a command (https://www.linuxquestions.org/questions/linux-server-73/postfix-deliver-to-a-command-910660/)

triciap 10-28-2011 11:37 AM

Postfix, deliver to a command
 
I am trying to replicate an ubuntu server, set up by someone else, with postfix delivering emails to a perl file, as well as to maildir. I cannot find a way to make this happen the second server. The log of a single email is:


Oct 28 16:43:08 ubuntu postfix/smtpd[27564]: connect from web00.ext.com[00.00.00.00]
Oct 28 16:43:09 ubuntu postfix/smtpd[27564]: 304DE3D2F2: client=web00.ext.com[00.00.00.00]
Oct 28 16:43:09 ubuntu postfix/cleanup[27569]: 304DE3D2F2: message-id=<201110281543.p9SFh7Nv005363@web00.ext.com>
Oct 28 16:43:09 ubuntu postfix/qmgr[1570]: 304DE3D2F2: from=<uf.net@web00.ext.com>, size=4377, nrcpt=1 (queue active)
Oct 28 16:43:09 ubuntu postfix/smtpd[27564]: disconnect from web00.ext.com[00.00.00.00]
Oct 28 16:43:09 ubuntu postfix/local[27570]: 304DE3D2F2: to=<someone@somewhere.com>, relay=local, delay=0.7, delays=0.41/0.01/0/0.28, dsn=2.0.0, status=sent (delivered to command: /home/someone/something.pl)
Oct 28 16:43:09 ubuntu postfix/local[27570]: 304DE3D2F2: to=<someone@somewhere.com>, relay=local, delay=0.77, delays=0.41/0.01/0/0.35, dsn=2.0.0, status=sent (delivered to maildir)
Oct 28 16:43:10 ubuntu postfix/qmgr[1570]: 304DE3D2F2: removed

Have you any suggestions as to how I can achieve this please?

tva 10-28-2011 03:21 PM

Do you have access to second server or where you got maillog from? If you have the access, check postfix/master.cf for entry to perl file

triciap 10-29-2011 04:09 AM

Thank you, but there is no mention of the file in master.cf or main.cf.


All times are GMT -5. The time now is 03:58 AM.