haatp.blogg.se

Mta Rp Script
Mta Rp Script










This method may also work for any other MTA that copies Sendmail's forward syntax, assuming you can get the MTA to redirect all mails to a particular user. Which could be as simple as $ cat /etc/smrsh/processīecause the emails are fed in on standard input (this might be bad if multiple instances of this process run at once presumably your actual code handles such race conditions or is otherwise idempotent.right?). forward file for that user to run the necessary code $ cat ~jdoe/.forward domain for subdomains, if necessary) to a local user, here jdoe local:jdoeĪnd then setup a. Set a mailertable entry to forward all mails for the domain (and. (I aborted as it was taking to much time to dig through the Exim docs.) There is elspy if you want to do at-SMTP-time scanning in a MILTER fashion. forward method or figure out how to do this properly in Eximese. This has the bonus of continuing to accept email and saving it somewhere what happens when your program is buggy or otherwise fails to run? Less of a problem than during live mail delivery. Another option would be to use the MTA to deliver to a local file or IMAP, then have your program parse that file or IMAP. So some other solution may be advisable this depends on the Mail Transport Agent (MTA). Should not be used as a basis for any further work.Īs people may know, I was the upstream maintainer of procmail back in the late 1990's though 2001. forward files or equivalent can send the mails directly to your program, skipping the thus needless complexity of procmail).Įxecutive summary: delete the procmail port the code is not safe and Procmail is considered problematical by Philip Guenther (and is quite possibly useless in this case, as.












Mta Rp Script