0

when an email is sent through network or email authentication using some mail client, it will surely pass through postfix smtpd and we will be able to track/put policy/ and add restrictions to it, but how the emails from the scripts can be tracked? as they do not pass through spmpd..

Is there any way to catch those emails and put restrictions on them? as many scripts on my server try to send lot of spam, with hundreds of domains.

0

2 Answers 2

1

You need to use the PREPEND value; see the postfix docs. A few examples are here.

2
  • i dont have any control over the script, i just want all the emails from ANY script to go through postfix
    – Farhan
    Nov 13, 2013 at 12:56
  • php, perl, python, any script.
    – Farhan
    Nov 13, 2013 at 13:20
0

You can put an identifier on the headers, you can add an authentication to send the mail, you can use a special FROM sender for each script or each site... There is a lot of possibilities. It depends of the numbers of scripts and who launch them, if you can modify the scripts or the website.

1
  • i dont have any control over the script, i just want all the emails from ANY script to go through postfix
    – Farhan
    Nov 13, 2013 at 13:20

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .