Hi, I am having trouble getting my mail to behave as I want it to. First, let me describe what I want to happen. All my mail comes into hartshorne.net. I fetchmail it (tunneled through ssh) to my laptop, where it goes through my procmail file and splits it into different folders. I then use mutt to read it.
The problem that I'm having is that mail generated by programs run as root on my machine (cron, bounces, errors on boot, etc.) get sent to [EMAIL PROTECTED] (which goes to all the administrators of hartshorne.net) instead of [EMAIL PROTECTED] (which goes only to me). Now, some details on the different programs and machines in action. The machines in question: hartshorne.net: mail server. green: my laptop Domains: green.hartshorne.net resolves to the same machine as hartshorne.net Software: hartshorne.net: qmail, pop3d green (laptop): fetchmail, postfix, procmail, mutt On hartshorne.net, qmail interprets mail sent to [EMAIL PROTECTED] to be delivered to [EMAIL PROTECTED] Now, in my /etc/postfix/main.cf, I have: myhostname = green myorigin = hartshorne.net When it sends root mail, it says "ok, origin=hartshorne.net, let me send mail to [EMAIL PROTECTED]" I don't want that, I want it to send mail to [EMAIL PROTECTED] So I figured that I could intercept this process by putting into the /etc/aliases file: root: ben running newaliases, giving postfix a kick, and all would be well. It's not. I tried setting myhostname and myorigin to green.hartshorne.net, but then I couldn't send mail to [EMAIL PROTECTED] and have it delivered according to the rule in .qmail-blue on hartshorne.net (as it would if I sent it to [EMAIL PROTECTED] from anywhere else). I'm not sure how to configure postfix to have the following behavior: *when I send mail to [EMAIL PROTECTED], it gets sent to hartshorne.net to be delivered to someone. *when I send mail to [EMAIL PROTECTED], it gets sent to hartshorne.net, and qmail interprets the address correctly, and delivers it. *when fetchmail injects any message, it gets thrown through procmail and delivered appropriately. *when an automated program generates mail to root, it gets delivered to EITHER [EMAIL PROTECTED] (which will get to me eventually) or just straight locally. I don't really care. Now, the third point above may bely a misunderstanding on my part. I am under the impression that fetchmail injects a message into the local mail delivery program, which then sends it through the .forward file into procmail, which actually writes the messages to different files. Is this correct? Also, I believe that mutt passes of messages to the local delivery agent (postfix) to be dealt with and sent at it's leasure. Is this correct? If both of those are right, is it true that both incoming and outgoing mail go through postfix at some point? I think that's where my problem lies. I realize that I shouldn't have created my virtual mail domain with the same name as my laptop. I could change the name of my laptop (though I'd rather not, I think it's rather attached to it's name. Changing one's name is always a traumatic event...), but it is not feasible to change the name of my virtual domain, since I have been using it for several months. This has only recently become a problem because I only recently switched to debian. When I was in redhat, this was not a problem, although I don't know exactly what was set how so that it didn't break things. Please ask for more information, and I would be happy with alternative setups in addition to solutions. Thanks for any help! -ben -- Ben Hartshorne ...Discarding smoothly, as we disembark, [EMAIL PROTECTED] All thoughts that held us wiser for a moment ben.hartshorne.net Up there, alone, in the impartial dark. -M. Oliver My PGP key is at /pgp.txt. Please encrypt all communications.
pgpjNCsRLKgDi.pgp
Description: PGP signature