On Fri, 2020-06-05 at 07:32 -0500, Chuck Campbell wrote:
On 6/4/2020 8:58 AM, Pete Biggs wrote:
Fair enough, and I now understand the issues with root receiving and handling emails. The problem with the alias is that ALL emails are being sent out to my ISP, and on to the particular user.
Even for local users that are in /etc/passwd?
Yes, I only have two local users, and email I send on the box ends up at the outside ISP, then comes back via fetchmail, and procmail. I can read it with IMAP from outside. I guess I'll live with this.
So even if you do something like
mail chuck
at the command line (with whatever user has a local account) it still gets sent to the ISP?
I'm sure it is the RelayHost or RelayDomains that forwards the email outbound to my ISP.
relay_host is the host that mail is sent to if it can't be delivered elsewhere.
relay_domains is a list of domains the host will relay mail to.
If I set up a local only account, those emails try to go outbound as well, but are rejected as there is no registered user of that name at my ISP.
In /etc/postfix/main.cf what is 'local_recipient_maps' set to? Also, what about 'mydestination'
If you look in /var/log/maillog what does a message log for a local user look like when sent using the mail command?
P.