LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 10-28-2011, 11:37 AM   #1
triciap
LQ Newbie
 
Registered: Oct 2011
Location: UK
Distribution: ubuntu
Posts: 2

Rep: Reputation: Disabled
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?
 
Old 10-28-2011, 03:21 PM   #2
tva
Member
 
Registered: Jul 2010
Location: Finland
Distribution: Open SUSE 13.1
Posts: 83

Rep: Reputation: 8
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
 
Old 10-29-2011, 04:09 AM   #3
triciap
LQ Newbie
 
Registered: Oct 2011
Location: UK
Distribution: ubuntu
Posts: 2

Original Poster
Rep: Reputation: Disabled
Thank you, but there is no mention of the file in master.cf or main.cf.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix to deliver local the relay. moose4 Linux - Server 1 05-25-2010 07:42 PM
postfix can't deliver to certain mailbox brgsousa Linux - Software 2 02-24-2010 06:32 AM
Postfix relayhost or direct deliver john.dixon Linux - Server 2 10-30-2008 08:44 AM
Postfix won't deliver to Maildir :-( Paulsuk Linux - Server 4 12-03-2007 03:15 PM
Forward All Postfix messages and deliver them dlublink Linux - Networking 1 12-27-2004 10:34 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration