Page 1 of 1

Scalix reply MAIL DELIVERY when amavis fails

Posted: Wed Sep 24, 2008 3:42 am
by Oscar
Hi, last week my Scalix server had a service interrupt (probably because not enough RAM) and this caused this repeated error:

Code: Select all

Sep 21 22:47:42 scalix sendmail[16335]: m8LKlf51016335: Milter (milter-amavis): local socket name /var/amavis/amavisd-milter.sock unsafe
Sep 21 22:47:42 scalix sendmail[16335]: m8LKlf51016335: Milter (milter-amavis): to error state
Sep 21 22:47:42 scalix sendmail[16335]: m8LKlf51016335: Milter: initialization failed, temp failing commands


During that period of time, mails between internal users didn't arrive to the destination but the sender saw it in the "Sent" folder as correctly delivered. They didn't get a notification error. The messages are not in the queue, they just "dissapeared" without Sendmail reply a MAIL DELIVERY notification to the sender.

After adding more RAM to the server and restart it, Scalix works properly (no change at all in configuration files or web admin).

Well, the important thing here is that we cannot know how many mails from outside arrived to our Scalix server, couldn't be delivered to internal users, and the sender wasn't be notificated about problem delivering it. This is really an important issue.

Where could we look for more information? Thanks a lot.

PD: My Sendmail configuration looks like this:

Code: Select all

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

AFAIK this is the correct configuration in order to ask Sendmail replying a MAIL DELIVERY notification in case a filter fails.

Posted: Wed Sep 24, 2008 11:54 am
by schmoe90
As you're saying sendmail for sending, I'm assuming you're using an IMAP client. Look in the /var/log/maillog to see what it was doing with the messages it was being handed.

Posted: Thu Sep 25, 2008 8:49 am
by Oscar
schmoe90 wrote:As you're saying sendmail for sending, I'm assuming you're using an IMAP client. Look in the /var/log/maillog to see what it was doing with the messages it was being handed.


I already pasted what /var/log/maillog says:

Code: Select all

Sep 21 22:47:42 scalix sendmail[16335]: m8LKlf51016335: Milter (milter-amavis): local socket name /var/amavis/amavisd-milter.sock unsafe
Sep 21 22:47:42 scalix sendmail[16335]: m8LKlf51016335: Milter (milter-amavis): to error state
Sep 21 22:47:42 scalix sendmail[16335]: m8LKlf51016335: Milter: initialization failed, temp failing commands


I've doing some tests and it seems that when amavisd-mind is not running then the log says nothing about the incoming mail, just the code already pasted. It's not good since it makes impossible to debug wich mails are sent during the service problem.