On Sunday, July 2, 2023 4:16:54 AM CEST William Kenworthy wrote:
> Hi all,
> 
>     I have been  using a gentoo mail gateway for many years - its currently
> running under LXC and is upgraded using a generic LXC "golden master" image
> with the various email related packages being installed and config files
> copied across roughly a month or two apart.  This is always a trial,
> particularly with permissions and has become much worse with gentoo's
> attempt at using the acct packages to manage user and group ID's.

I actually find this easier to solve issues. What do you find difficult here?

> The latest problem driving me up the wall is amavis-new wouldn't start after
> the upgrade.  I have postfix sending email to port 1024 where amavis is
> listening (this time required a new setting in amavisd.conf not previously
> needed) but postfix now wont accept email back from amavis on port 10025 so
> mail is mostly queued (some leaks at times - no idea why).

I assume you mean port 10024 ?

> The main error message is:
> 
> 
> Jul  2 10:00:14 mail amavis[6074]: (06074-02-3) about to connect to
> smtp:[127.0.0.1]:10025, JZ76UHvsOKBa FWD from <root@localdomain> ->
> <wdk@localhost> Jul  2 10:00:14 mail amavis[6074]: (06074-02-3) smtp
> session: setting up a new session Jul  2 10:00:14 mail amavis[6074]:
> (06074-02-3) new socket using IO::Socket::IP to [127.0.0.1]:10025, timeout
> 35 Jul  2 10:00:14 mail amavis[6074]: (06074-02-3) (!)connect to
> [127.0.0.1]:10025 failed, attempt #1: Unrecognised protocol tcp at
> /usr/sbin/amavisd line 8392. Jul  2 10:00:14 mail amavis[6074]:
> (06074-02-3) mail_via_smtp: session failed: All attempts (1) failed
> connecting to smtp:[127.0.0.1]:10025

This is postfix rejecting the connection.
Do you have the following:

# grep 10025 * 
master.cf:127.0.0.1:10025 inet n        -       n     -       -  smtpd

> and what has thrown me: I can stop amavisd, then log in as user "amavis" and
> run "amavisd -c /etc/amavisd.conf debug" then everything works as intended!
> WHY?

Does postfix start before or after amavis?

> I am preparing a new mail gateway LXC image as a clean install to try and
> straighten out the underlying permissions, but a fix for my current dilemma
> would be appreciated!

If a clean install works, I'd recommend a comparison between the 2 (start with 
a diff for both "/etc") to check the cause.

--
Joost



Reply via email to