On Oct 2, 2007, at 5:18 PM, Stewart C. Strait wrote:
1. I am trying to retrieve mail from my [EMAIL PROTECTED] account with fetchmail and hand it over to postfix for delivery to my local [EMAIL PROTECTED] account. (This works.)
Yay!
2. I am trying to send mail (using mutt and postfix) from my local [EMAIL PROTECTED] account via roadrunner to the outside world. This almost works. My From: (and probably From_) headers say scs instead of sstrait1. This was what I was trying to correct with /etc/postfix/generic.
This should be changed in mutt itself. Trying to change it with the postfix MTA is like using a hammer to swat a fly. It'll work, but you have to be really accurate. Others versed in mutt (I do not use it) should be able to jump in here to help you with this.
3. I am trying to receive local notification emails and test emails that stay on localhost from beginning to end. I can live with incorrect headers here, but they suggest I'm running past my target.
My solution is to alias root to my ISP address, and configure the local postfix to use my ISP's SMTP server as relayhost.
The other solution is to alias root to your machine-local account (the one to which fetchmail is delivering your messages via postfix), i.e.:
root: scs in your aliases file. Basically, your postfix main.cf can be as simple as: myhostname = workstation.$mydomain mydomain = localdomain mydestination = $myhostname, localhost, localhost.localdomain relayhost = your.isp.smtp.server.comand postfix will figure the rest out, usually with very sane defaults. Mine's really not much more complex than that.
4. I am trying to send test emails from [EMAIL PROTECTED] to myself via roadrunner by addressing them to [EMAIL PROTECTED] .When I was using sendmail on another system this was a reliable way to seewhether my headers were right. It also would test most other issues and didn't require emails coming from someone else. FWIW, I might be too used to being scs to change my local username to sstrait1 .
Your local username shouldn't matter. I can send mail with: echo "test" | mail -s "test" [EMAIL PROTECTED]from my linux box, and postfix will happily hand it off to Cox's SMTP server, which I have configured as $relayhost for postfix. Everything works happily.
6 or so years ago when I set up my email using sendmail I was able to get all of these things working. I'm assuming that trying to duplicate my old methods will be too complicated but if anyone wants to see them they are at:
Is it still true that some naive spam filters drop emails whose From: doesn't match From_ ? Getting From_ right was complicated 6 years ago on sendmail.
Really, as above, both of these issues should be addressed by properly configuring mutt. In fact, you could just configure mutt to use your ISP's SMTP server directly, and avoid most, if not all, of the "sending mail" hassle. It's really what I would recommend.
Gregory -- Gregory K. Ruiz-Ade <[EMAIL PROTECTED]> OpenPGP Key ID: EAF4844B keyserver: pgpkeys.mit.edu
PGP.sig
Description: This is a digitally signed message part
-- [email protected] http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list
