On Thu, Sep 18, 2014 at 04:39:59PM +0200, Tom Hendrikx wrote:
> >> Is there a way to detect a 'too many hops' issue from the logging,
> >> preferably without changing postfix verbosity?
> >
> > Does the SMTP client log the rejected command (like Postfix does)?
> > If not, which program should be changed?
The problem is detected in cleanup(8) and an error status is returned
to smtpd(8). Would you like this logged whenever a loop is detected
or just when it is a reply to a remote SMTP client? The code in
smtpd(8) does not log this condition, just informs the remote SMTP
client:
} else if ((state->err & CLEANUP_STAT_HOPS) != 0) {
state->error_mask |= MAIL_ERROR_BOUNCE;
detail = cleanup_stat_detail(CLEANUP_STAT_HOPS);
smtpd_chat_reply(state, "%d %s Error: %s",
detail->smtp, detail->dsn, detail->text);
} ...
and cleanup(8) likewise just sets a status flag.
> But from your remark about 'which program should be changed', I may
> conclude that this is not possible?
Not possible without code changes.
--
Viktor.