Problem using amavisd 2.9.and sendmail on Centos 7

bortolotti daniela.bortolotti at bo.infn.it
Wed May 13 17:47:07 CEST 2015


Hi Matthias,
here it is our output:

------------------------------------------------------------------------------------------------
sendmail -v bortolotti at bo.infn.it < /tmp/ciao
bortolotti at bo.infn.it... Connecting to [127.0.0.1] via relay...
220 bo.infn.it ESMTP server; Wed, 13 May 2015 17:19:49 +0200
 >>> EHLO postman.bo.infn.it
250-postman.bo.infn.it Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 100000000
250-DSN
250-ETRN
250-AUTH GSSAPI
250-STARTTLS
250-DELIVERBY
250 HELP
 >>> STARTTLS
220 2.0.0 Ready to start TLS
 >>> EHLO postman.bo.infn.it
250-postman.bo.infn.it Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE 100000000
250-DSN
250-ETRN
250-AUTH GSSAPI PLAIN LOGIN
250-DELIVERBY
250 HELP
 >>> MAIL From:<root at postman.bo.infn.it> SIZE=5 AUTH=root at postman.bo.infn.it
250 2.1.0 <root at postman.bo.infn.it>... Sender ok
 >>> RCPT To:<bortolotti at bo.infn.it>
 >>> DATA
250 2.1.5 <bortolotti at bo.infn.it>... Recipient ok
354 Enter mail, end with "." on a line by itself
 >>> .
250 2.0.0 t4DFJnkZ006299 Message accepted for delivery
bortolotti at bo.infn.it... Sent (t4DFJnkZ006299 Message accepted for delivery)
Closing connection to [127.0.0.1]
 >>> QUIT
221 2.0.0 postman.bo.infn.it closing connection
----------------------------------------------------------------------------

When a I use amavisd-release command the output is:

amavisd-release virus-m0fUPazhnpfA
451 4.5.0 Failed to submit a message: exit 78, id=rel-k47A8FCsKcSV

And maillog file:
May 13 17:21:58 postman amavis[6279]: (rel-0frn5zAtV38Y) Quarantined 
message release (miscategorized): m0fUPazhnpfA 
<Antonella.Monducci at bo.infn.it> -> <monducci at bo.infn.it>
May 13 17:21:59 postman sendmail[6309]: NOQUEUE: SYSERR(amavis): can not 
chdir(/var/spool/clientmqueue/): Permission denied


-----------------------------------------------------------------------------

Our submit.mc is standard, we modified only sendmail.mc

  dnl # amavis milter definitions 9-3-2015
INPUT_MAIL_FILTER(`amavis-milter', 
`S=local:/var/run/amavisd/amavisd-milter.sock, F=T, T=S:10m;R:10m;E:10m')

-----------------------------------------------------------------------------

In our amavisd.conf setup we define these rules:
$unix_socketname = "$MYHOME/amavisd.sock";
$notify_method = 'pipe:flags=q argv=/usr/sbin/sendmail -Ac -i -odd -f 
${sender} -- ${recipient}';

but don't receive notifications.

------------------------------------------------------------------------------

Where is the mistake?

Thank a lot.

Best Regards
Daniela









On 05/12/2015 10:31 AM, Matthias Weigel wrote:
> Hi Daniela,
>
> does using sendmail on command line work?
> e.g.
> sendmail -v somebody at example.com < /tmp/sometext
>
> What does your /etc/mail/submit.mc and your /etc/mail/sendmail.mc look like?
>
> Best Regards
>
> Matthias
>
> Am 12.05.2015 um 10:18 schrieb bortolotti:
>> Hi Fabian,
>> our permission of  "/var/spool/clientmqueue"
>> is good and SELINUX is already DISABLE.
>> What else can I investigate?
>>
>> Thanks a lot.
>> Daniela Bortolotti
>>
>>



More information about the amavis-users mailing list