Re: [gentoo-user] Help with local mail, please

2024-02-16 Thread Peter Humphrey
On Friday, 16 February 2024 12:30:48 GMT J. Roeleveld wrote:
> On Friday, February 16, 2024 6:19:25 AM CET Peter Humphrey wrote:
> > On Wednesday, 14 February 2024 11:35:18 GMT J. Roeleveld wrote:
> > > I've been using postfix for longer than I can remember.
> > > The config entries I changed from default are:
> > > 
> > > --- main.cf ---
> > > myhostname = 
> > > mydomain = 
> > > myorigin = 
> > > mynetworks =  > > 192.168.1.0/24>
> > 
> > That's helpful - thanks Joost.
> 
> You're welcome. Was this enough to get it working?

I forgot to add that my system was already almost identical to yours, so I 
don't know whether to say yes or no.   :)

> > > smtpd_relay_restrictions = permit_mynetworks, 
permit_sasl_authenticated, reject_unauth_destination
> > 
> > No relaying here; all outgoing mail goes to my ISP.
> 
> If your mailserver (postfix) is sending emails to your ISP, that is (from
> the viewpoint of postfix) relaying by definition.

Er... outgoing mail doens't go through postfix at all; it goes direct from my 
KMail client to my ISP.

> > > Also, are all emails sent to "mydomain" or do you have additional
> > > domains configured?
> > > If the latter, did you set "virtual_alias_domains = hash:/etc/postfix/
> > > virtual_domains"
> > > Include all virtual domains the file and converted the file to a .db ?
> > 
> > Just the one "mydomain"

...so no need to set any virtual domains.

> If you have only 1 domain, keep that "virtual_alias_domains" empty.

No such setting in my main.cf so I assume it's empty.

Anyway, I looked at some of those mails that postfix was trying to forward, and 
they were old and unimportant, so I purged them.

Let's see what other problems I've made for myself...  :)

-- 
Regards,
Peter.






[gentoo-user] Re-run grub-install to update installed boot code!

2024-02-16 Thread Grant Edwards
Today's routine update says:

Re-run grub-install to update installed boot code!

Is "sudo grub-install" really all I have to do?  Grub knows where/how
everthing was originally installed and will do the right thing without
any options?

Or do I have to run grub-install with all the same options that were
originally used to install grub?

[I use a manually generated grub.cfg file, so I'm ignoring the message
that tells me I to run "grub-mkconfig".]

--
Grant





Re: [gentoo-user] Help with local mail, please

2024-02-16 Thread J. Roeleveld
On Friday, February 16, 2024 6:19:25 AM CET Peter Humphrey wrote:
> On Wednesday, 14 February 2024 11:35:18 GMT J. Roeleveld wrote:
> > I've been using postfix for longer than I can remember.
> > The config entries I changed from default are:
> > 
> > --- main.cf ---
> > myhostname = 
> > mydomain = 
> > myorigin = 
> > mynetworks =  > 192.168.1.0/24>
> 
> That's helpful - thanks Joost.

You're welcome. Was this enough to get it working?

> > smtpd_relay_restrictions = permit_mynetworks, permit_sasl_authenticated,
> > reject_unauth_destination
> 
> No relaying here; all outgoing mail goes to my ISP.

If your mailserver (postfix) is sending emails to your ISP, that is (from the 
viewpoint of postfix) relaying by definition.

> > Also, are all emails sent to "mydomain" or do you have additional domains
> > configured?
> > If the latter, did you set "virtual_alias_domains = hash:/etc/postfix/
> > virtual_domains"
> > Include all virtual domains the file and converted the file to a .db ?
> 
> Just the one "mydomain"

If you have only 1 domain, keep that "virtual_alias_domains" empty.

--
Joost