Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sendmail configuration

Status
Not open for further replies.

cnw40007

Technical User
Mar 4, 2003
35
IE
Hi,
Would anybody know how to configure sendmail such that it has two LDA's. One that takes incoming mail and filters it(not procmail) and then sends the email back to sendmail where it will pass it on to the 2nd LDA for final delivery (procmail)
Thanks a mill.
 
LDA ?

so if i get what you want you want:

outside --> sendmail --> procmail

with some filtering at the sendmail position ...

are the sendmail and procmail servers on the same machine?
 
Yes they are.I want sendmail to deliver the remote emails first through a simple perl filter that i have written myself after the mail has been filtered in theory i need the filter to send the email back to sendmail which will inturn trigger procmail to send the email on to the final recipient which are not on the same machine.Is this even possible. I hope i have explained it correctly. Thanks
 
ok ... if you set sendmail up so that it runs without the -q$TIMEOUT option, the queue will sit in /var/spool/mqueue

if you check this lot with a perl script (something like MailScanner, , is what you're using i assume) on the queue, and get it to redirect it's output to /var/spool/mqueue.out or something similar.

then every so often as root (maybe via cron, maybe via script) you could run '/lib/sendmail -q -C /etc/mail/sendmail.to.procmail' which is set up to use /var/spool/mqueue.out as it's queue directory and told to smart relay to a different port (the one which is running procmail) which will deliver all mail from the /var/spool/mqueue.out to the smart relay, maybe :)

i hope this works for you ... i use MailScanner, but i don't need to pass the data onto procmail.
 
Ok that has pointed me in the write direction. Thanks a mill.

cnw40007
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top