J. Roeleveld
2023-07-03 05:00:01 UTC
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?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.
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 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).
Jul 2 10:00:14 mail amavis[6074]: (06074-02-3) about to connect to
(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
(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.(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
(06074-02-3) mail_via_smtp: session failed: All attempts (1) failed
connecting to smtp:[127.0.0.1]:10025
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?run "amavisd -c /etc/amavisd.conf debug" then everything works as intended!
WHY?
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 withstraighten out the underlying permissions, but a fix for my current dilemma
would be appreciated!
a diff for both "/etc") to check the cause.
--
Joost