Tagged Questions
2
votes
2answers
201 views
Postfix header checks
How can I write regex for postfix header check to reject all the mails with X-Source-Dir having abc/def?
Is this OK?
/^X-Source-Dir:\s(.*abc\/def.*)/ REJECT due to spam:
0
votes
3answers
240 views
grep out unique senders from a huge list of emails
I just found a huge list of emails under my user account in Centos /home/user/mail/new
I opened some of them and noticed they were sent from a particular cron job. From address is root@hostname.com. ...
2
votes
1answer
481 views
Postfix setting reply-to field to sender
I would like to set the reply-to field to the sender of the mail if the recipient matches some addresses. I know I could do a regular expression like this to do this
/^(To|Cc):.*foo@bar.com/ PREPEND ...
