Max Children > 1: same message gets delivered more than once
Beat Jucker
bj at GLUE.CH
Mon May 9 16:11:25 IST 2005
On Mon, May 09, 2005 at 04:06:43PM +0200, Steen, Glenn wrote:
> > May 9 14:21:47 cicero2 MailScanner[11542]: User's home directory /home/postfix does not exist
> This looks fishy. Perhaps worth fixing?-)
Postfix entry in /etc/shadow is locked. Postfix entry in /etc/passwd
should only get used for UID/GID. To be shure that this isn't a problem
I have created /home/postfix.
> Definitely getting hold of the same message twice... Are you using
> the (recommended) hold feature/1-postfix-setup, or the (old)
> defer/2-postfix-setup?
I think I have used the recommended setup (I have used the From attribute
because of logged details in mail logfile):
in header_checks: /^From:/ HOLD MailScanner
in master.cf: pickup fifo n - n 5 1 pickup -o receive_override_options=no_header_body_checks
On Mon, May 09, 2005 at 02:22:46PM +0100, Martin Hepworth wrote:
> sounds like the file locking is messed up. What MTA (and vesrion)are you
> running and what have you got in Mailfcanner.conf for "Lock Type ="?
MTA: Postfix mail_version = 2.0.16-20030921 @ Solaris 9
As far as I understand my problem has nothing to do with Postfix
because Postfix puts message into hold queue. From there MailScanner
is fighting about (picks up) the message for spam/virus scanning.
However all the MailScanner children fetches the message.
Sounds like a lock problem but I don't know how MailScanner
handles this concurrency (flock ... ?).
>May 9 14:21:36 cicero2 MailScanner[11541]: Using locktype = flock
in MailScanner.conf:
# How to lock spool files.
# Don't set this unless you *know* you need to.
# For sendmail, it defaults to "flock".
# For sendmail 8.13 onwards, you will probably need to change it to posix.
# For Exim, it defaults to "posix".
# No other type is implemented.
Lock Type =
I tried also: "Lock Type = posix"
but the same behaviour: message gets delivered N times
May 9 16:07:19 cicero2 MailScanner[11973]: Using locktype = posix
May 9 16:07:19 cicero2 MailScanner[11973]: Creating hardcoded struct_flock subroutine for solaris (misc-type)
...
May 9 16:07:30 cicero2 MailScanner[11974]: Using locktype = posix
May 9 16:07:30 cicero2 MailScanner[11974]: Creating hardcoded struct_flock subroutine for solaris (misc-type)
...
May 9 16:08:06 cicero2 MailScanner[11974]: Saved archive copies of DDA4F76C0A.DC5F9
...
May 9 16:08:07 cicero2 MailScanner[11973]: Saved archive copies of DDA4F76C0A.36885
Regards
-- Beat
------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
Support MailScanner development - buy the book off the website!
More information about the MailScanner
mailing list