Devdas Bhagat wrote:
On 06/03/05 01:40 +0530, Philip Tellis wrote:
Sometime on Mar 5, SD cobbled together some glyphs to say:
However, despite my chaging the From: & Reply-To: headers to my MTNL e-mail addresses, the mail was bounced by the MTNL smtp server:
You've got to change the envelope header. I don't know how to do this with postfix, perhaps devdas can help. If you need help with sendmail,
For envelop senders only, virtual_alias_maps. For envelop and headers, canonical_maps. For SMTP AUTH, http://www.postfix.org/SASL_README.html (See the smtp_* section). Normally though, if you authenticate, you should not need to set the envelop sender.
News: I have been able to configure postfix so now I can send mail from command line (in addition to thunderbird). Plus, as Philip suggested, I have now configured thunderbird to hand my outgoing mails to postfix running on localhost:25 which in turn hands them over to MTNL relay :) Works beautifully.
The changes were implemented by adding smtp_sasl configs (as described in the web link suggested by Devdas) in main.cf, creating sasl_passwd & sender_canonical table entries (would be glad to post if anyone needs them).
I just have a few nagging questions after this exercise:
The login on my machine is "soumen" & my mtnl user name is "soumen_dass". Now... 1. Is it the right practice to use the combination of $myorigin = mtnl.net.in & soumen -> soumen_dass in sender_canonical or leave $myorigin uninitialised & soumen -> soumen_dass@mtnl.net.in (current setting) Both approaches are working (except in the latter even local mails (from cron etc.) are getting routed through MTNL).
2. Devdas mentioned about not needing to set the envelop sender if I'm using SMTP auth with MTNL. But MTNL rejects my mails (reason : "550 Faking email-id not allowed") unless I re-write my envelop and headers.
I have understood that this is a vast area. The documentation on postfix.org can tire a marathon runner :) However, this effort has been quite exciting for me. My thanks to Philip & Devdas for their help. -- Soumen Dass [Registered Linux User # 272639 - Linux nova 2.4.22-1.2115.nptl i686]