postfix - fetchmail - external smtphost hickhack
Hi list, ok, its quite off topic, but the result of security police. I've customers running email-relay via postfix with checks on body/header to reject mail with certain attachments. Incoming mail realized via fetchmail. The prob: fetchmail sends the mail to mta(postfix). That is rejecting if neccessary and so sends fetchmail the error message back to external sender. But with fetchmail-daemon@localhost.xxxx And this sender is then rejected by external smtp-host, cause it cant resolve the adress above. How2 give fetchmail for that purpose a special sender adress ? Read the FM, but smptname/host are not the options for this ??? Thx in advance Yours Michael Appeldorn
Michael Appeldorn wrote:
How2 give fetchmail for that purpose a special sender adress ? Read the FM, but smptname/host are not the options for this ???
i think, fetchmail injects the mail to postfix again and you can tell postfix to rewrite the sender. Example: /etc/postfix/sender_rewrite: fetchmai-daemon@localhost postmaster@official-site.com /etc/postfix/main.cf: sender_canonical_maps = hash:/etc/postfix/sender_rewrite that should work HTH -- intraDAT AG http://www.intradat.com Wilhelm-Leuschner-Strasse 7 Tel: +49 69-25629-0 D - 60329 Frankfurt am Main Fax: +49 69-25629-256 Junk mail is war. RFCs do not apply.
How2 give fetchmail for that purpose a special sender adress ? Read the FM, but smptname/host are not the options for this ???
i think, fetchmail injects the mail to postfix again and you can tell postfix to rewrite the sender. Example: /etc/postfix/sender_rewrite: fetchmai-daemon@localhost postmaster@official-site.com
/etc/postfix/main.cf: sender_canonical_maps = hash:/etc/postfix/sender_rewrite
that should work
Yep, thx. Only a postmap /etc/postfix/sender_rewrite was neccessary, despite we named "hash" not "db". Michael Appeldorn
On Friday 08 March 2002 12:05 am, Michael Appeldorn wrote:
Hi list, How2 give fetchmail for that purpose a special sender adress ? Read the FM, but smptname/host are not the options for this ??? ichael Appeldorn
You tried --invisible ?? Don't you just love ESR's clear lucid well organized writing style??? -- _________________________________________________ No I Don't Yahoo! And I'm getting pretty sick of being asked if I do. _________________________________________________ John Andersen / Juneau Alaska
participants (3)
-
John Andersen
-
Michael Appeldorn
-
Sven Michels