MailScanner under openvz

Julian Field MailScanner at ecs.soton.ac.uk
Mon Apr 26 08:46:59 IST 2010



On 26/04/2010 01:13, Noel Butler wrote:
> Greetings,
>
> Has anyone had any issues with this configuration?
>
> I have installed MailScanner on many servers, personal, my employers, 
> and private clients over the years, must be totalling into hundreds 
> having used it since 2002, even on virtual stuff like xen and vmware, 
> but I've never had the displeasure of doing one under an openvz 
> container,  that said, this is my first hands on with openvz (no, I 
> don't control of the vps server hardware but I have faith in the 
> company that does as they have been doing this for a couple years, so 
> I trust the container and master host are properly setup).
>
> I know even an old pro like myself can make a mistake, so I duplicated 
> the setup on a spare dev box, and it works fine, but on that vps, not 
> a hope in hell...
>
> There are no errors in any lint/debug for MS or SA, forcing a 
> confiscated rootkit, gets found by clamav and dealt with correctly, so 
> I'm ruling out anti virus as well.
>
> Using base config of 5 children, It repeatedly restarts, it will 
> process mail in the process though, there are again, no indications as 
> to why it is restarting continuously.
>
>
> So I dropped the kids to "2" and it starts, all good as it should.
>
> 26227 ?        Ss     0:00 MailScanner: master waiting for children, 
> sleeping
> 26232 ?        S      0:02 MailScanner: waiting for messages
> 28345 ?        S      0:02 MailScanner: waiting for messages
>
> Except.. (yep there's always an "except")...
> Often, a child grabs the batch, then, the other kid grabs it, 
> processing it twice, resulting in the recipient getting two copies of 
> the message.
That's a locking fault.
>
> and.. then, if it restarts itself as per the restart timeout value, 
> they end up like this, trying to start a child, even though it already 
> has restarted itself and both of its kids (and we don't ever see 26227 
> return to master state.)
> 16328 ?        S      0:02 MailScanner: waiting for messages
> 18049 ?        S      0:02 MailScanner: waiting for messages
> 26227 ?        Ss     0:00 MailScanner: starting child
What happens if you put a message or two into mqueue.in and then 
"MailScanner --debug" ?
Does that produce any errors or warnings?

And what does your maillog say about the whole process? Any give-aways 
there?

>
>
> This is a centos 5.4 system.  MailScanner was installed from source 
> not an ancient rpm or whatever.
>
> CPU:     8 Intel(R) Xeon(R) CPU           E5450  @ 3.00GHz at 123MHz
> Memory:  512 MB
> Machine: x86_64
> Release: Linux 2.6.18-028stab068.3
>
>
> So, has anyone run into any problems like this with openvz?
>
> Cheers
> (thanks to Julian if he approves this post)
> (direct replies accepted) 

Jules

-- 
Julian Field MEng CITP CEng
www.MailScanner.info
Buy the MailScanner book at www.MailScanner.info/store

Need help customising MailScanner?
Contact me!
Need help fixing or optimising your systems?
Contact me!
Need help getting you started solving new requirements from your boss?
Contact me!

PGP footprint: EE81 D763 3DB0 0BFD E1DC 7222 11F6 5947 1415 B654
Follow me at twitter.com/JulesFM and twitter.com/MailScanner


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.



More information about the MailScanner mailing list