Syntax error in MAIL FROM parameters

Christian Boltz amavis-users at cboltz.de
Sat Feb 17 16:38:35 CET 2018


Hello,

does someone know what Amavis wants to tell me with this message, and
how to avoid these rejects?
(the mail address is anonymized starting at "user=")

Feb 15 12:38:28 server amavis[3273]: (03273-17) ESMTP: 501 5.5.4 Syntax error in MAIL FROM parameters; smtp_resp: MAIL FROM:<bounce+28f75a.232d6-user=example.com at mail.example2.com> BODY=8BITMIME SMTPUTF8\r\n

This affects for example notification mails from gitlab com, but also
some other senders. In total, it's "just" a few mails per day, but I'd
still like to receive those mails ;-)

It looks like this problem started after upgrading from openSUSE Leap
42.2 to 42.3 (amavisd-new-2.8.1-11.1.x86_64).

The Postfix and Amavis config is unchanged, therefore I don't attach it
for now. If someone thinks it's needed, I'lll of course provide it.


Looking at the amavis source code in /usr/sbin/amavisd shows
(starting at line 20555)

        my($addr,$opt) = ($1,$2);  my($size,$dsn_ret,$dsn_envid);
        my $msg ; my $msg_nopenalize = 0;
        for (split(' ',$opt)) {
          if (!/^ ( [A-Za-z0-9] [A-Za-z0-9-]*  ) =
                  ( [\041-\074\076-\176]+ ) \z/xs) { # printable, not '=' or SP
            $msg = "501 5.5.4 Syntax error in MAIL FROM parameters";
          } else {

as likely source of the problem - at least, that's the only place where
I found the error message.

Does someone know how I can avoid those rejects?


Regards,

Christian Boltz
-- 
If [Ford] had asked people what they wanted they wouldn't
have said motor cars, they'd have said faster horses.
[Brian K. White in opensuse-project]





More information about the amavis-users mailing list