Hi,

On Sat, Jun 02, 2012 at 10:36:19AM -0500, Steve Jones wrote:
> 
> This a test to see if it can get through.
> I think lfs lists might be /dev/null-ing me because Return-Path does not
> match my subscribed email.  If this does get through then that shoud be
> the case.

> Dose anybody know how to force mutt -> postfix -> "smptd relay host" to
> make the Return-Path header match the From header?
Although I haven't used postfix for a while, I do remember trying to
solve this gotcha.

In your ~/.muttrc add this line:
set reply_to=no

In /etc/postfix/sender_canonical:
[email protected]       [email protected]

And if needed for authentication in
/etc/postfix/sasl_passwd
smtp.hisisp.net  [email protected]:superduperpasswd

  postmap sasl_passwd
  postmap sender_canonical
Which should create sasl_passwd.db and sender_canonical.db

Check /etc/postfix/main.cf and add the following, if needed:

# look like hisisp
masquerade_domains = hisisp.net
masquerade_classes = envelope_sender, header_sender, 
header_recipient,envelope_recipient
sender_canonical_maps = hash:/etc/postfix/sender_canonical
smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd
smtp_sasl_auth_enable = yes
smtp_sasl_security_options =
start_tls = yes
smtp_tls_note_starttls_offer = yes
tls_random_source = dev:/dev/urandom
smtp_use_tls = yes
relayhost = smtp.hisisp.net

And then restart postfix.  If all goes well, mutt will leave the headers
alone and when the email is sent out, postfix will rewrite them to the
right thing.  Since it has been a while, some of the above might be a
tad dated, but I hope it will point you in the right direction
regardless.

You might consider a lighter smtp program like msmtp (or other fine ones
too) if your needs are more modest.  

Best of luck!
ae
-- 
My Blog: http://elian001.wordpress.com
-- 
http://linuxfromscratch.org/mailman/listinfo/lfs-chat
FAQ: http://www.linuxfromscratch.org/faq/
Unsubscribe: See the above information page

Reply via email to