Hi Daniela, for the sendmail commandline test, please try it as the amavis user, not as root.
Also please check the permissions of the sendmail program: it has to be setgid: ls -lisa /usr/sbin/sendmail* ls -lisa /etc/alternatives/mta and ls -lisa /etc/mail To check dir permissions by sendmail itself use sendmail -v -d44.4 -bv Best Regards Matthias Am 13.05.2015 um 17:47 schrieb bortolotti: > Hi Matthias, > here it is our output: > > ------------------------------------------------------------------------------------------------ > > sendmail -v bortolo...@bo.infn.it < /tmp/ciao > bortolo...@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:<r...@postman.bo.infn.it> SIZE=5 AUTH=r...@postman.bo.infn.it > 250 2.1.0 <r...@postman.bo.infn.it>... Sender ok >>>> RCPT To:<bortolo...@bo.infn.it> >>>> DATA > 250 2.1.5 <bortolo...@bo.infn.it>... Recipient ok > 354 Enter mail, end with "." on a line by itself >>>> . > 250 2.0.0 t4DFJnkZ006299 Message accepted for delivery > bortolo...@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.mondu...@bo.infn.it> -> <mondu...@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 someb...@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 >>> >>> > >