Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Not much information to go on. Normally, Postfix will deliver immediately, unless there is a temporary error in which case the message will be "deferred" but still stay in the queue. Since you are able to test and see it happen, I would look for any such condition. I would also see if Postfix claims that there are messages in the queue and try to flush them and see what happens.
Can you post a log entry showing one that doesn't go through and one that does for comparison purposes?
I should have corrected myself, it not something I can replicate easy, it seems to happen maybe once out of 100 emails sent from cron. For example I just checked que and it is empty.
I have the email that was received yesterday, and it shows that it was sent 3/29 @ 10 pm
So I looked in /var/log/maillog-20120401
and could not find an exact mail at that time only thing was close was sent at 23:00
Mar 29 23:00:40 server1 postfix/smtp[23230]: 6E8D616179C: to=<user@test.com>, relay=smtp.test.com[192.168.1.1]:25, delay=0.09, delays=0.02/0.02/0.02/0.04, dsn=2.0.0, status=sent (250 2.0.0 q2TNmX8t013865 Message accepted for delivery)
I am not sure if this even the email, since it only shows the to and from in the logs, is there a way to turn on more debugging information so would show maybe the subject?
warning: the Postfix sendmail command has set-uid root file permissions
warning: or the command is run from a set-uid root process
warning: the Postfix sendmail command must be installed without set-uid root file permissions
I did a google search and looks like it is a bug with cron? Have you ever seen this?
This is a first for me and it does raise a question: are the "delayed" mail all from a CRON task or does it happen with regular user mail?
To me these warnings sound more like a minor security issue than something that would cause mail to be delayed / deferred.
Interesting. I wish I could offer your more specific advice at this point, but the best I have to offer at this time is to use the known facts as filters to try and sort through your mail logs. In addition to the general info log, a lot of times there is an error and warning log that might be of more value to you. In particular look for "deferred" or "reject" messages associated with this user.
You have to check number of the mail in "queue/deferred/active/hold/" number of smtp request & alos check the memory utilization & disk utilization
#mailq |wc -l
#qshap hold
#qshape deferred
#qshape active
top & iostat check the disk i/o wait
Postfix mainly utilized the memory so may you need to increase the memory but check all statics then go for that
It also depend how many users you have in that postfix server
some other parameter can change in that
Just get all these statics & figure out where is the problem
Also check the nice value of qmgr & postfix & can change to -10
unfortunately whatever was happening has not replicated itself, and for the past week or so email is working right on the dot. I really don't know what happened.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.