OpenEMM Support Forum Index OpenEMM Support
Use this forum to get and provide free help regarding OpenEMM
 
 TOP   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How to manipulate sendmail queues (post all your info here)

 
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Installation
View previous topic :: View next topic  
Author Message
Slartibartfast



Joined: 09 Sep 2008
Posts: 1

PostPosted: Sat Sep 13, 2008 11:58 am    Post subject: How to manipulate sendmail queues (post all your info here) Reply with quote

Hello folks,

the "out-of-the-box"-functionalities of OpenEMM astonish me.

The only thing that puzzles me is OEMM's dependency on starting its own sendmail queues. I am kindly requesting everybody to share his/her knowledge in this thread, as there are many sendmail-related questions in this forum, many of them unanswered. Let's work together here.

I should be happy if the answer to my own question should show up in this thread, too. I am fairly new to sendmail.

I have set up a Debian (Etch) server including sendmail 8.13.8 and cyrus 2.2 with saslauth2 over pam and mysql. Sendmail uses 2 mailqueues (/var/spool/mqueue and /var/spool/mqueue.in). The reason for this is a desperately needed mailscanner with spamassassin plus virusscanner installation, which runs perfectly fine. My server is a hosted root server.

Prior to starting OpenEMM, I stop sendmail (as root) and observe:

OpenEMM starts 3 mailqueues, two of which are located in its home directory: "admin" and "test". A third "mqueue-client" can be found in /var/spool. It seems that OEMM'S mailer.sh allows some manipulation of how sendmail is being invoked.

The thing is: the start parameters of the compliant mailqueue "mqueue-client" are coded within an if-clause - and I have no insight into OpenEMM's smctrl and thus do not know how mailer.sh can be changed to comply with my 2-queues-setup.

Can anyone please clarify matters - not only for me, but - for all of us and inform us about the following:

questions to other OEMM users and its developers:

= possible params to be passed through OpenEMM's smctrl

questions to people who are familiar with shell-scripting:

= possible code changes to if-clause in mailer.sh to persuade the sendmail invoked by OpenEMM to use /var/spool/mqueue instead of /var/spool/mqueue-client
= possible code changes to if-clause in mailer.sh to allow those of us using mailscanner to use /var/spool/mqueue plus /var/spool/mqueue.in again

Please feel free to add your own sendmail-related questions here. Maybe the information requested and hopefully gathered here could be condensed in a FAQ.

Good resources for everyone working with sendmail are:

http://www.sendmail.org/m4/readme.html
http://www.sendmail.org/~ca/email/ (this one seems not to be linked to from sendmail.org, highly interesting)
http://www.unix.com.ua/orelly/other/Sendmail_3rd/ (O'Reillys sendmail book online)

Thanks so much to everyone who will contribute!
Slartibartfast
Back to top
View user's profile Send private message
sapeksh



Joined: 19 Nov 2008
Posts: 4

PostPosted: Wed Nov 19, 2008 6:52 am    Post subject: Sendmail does not stop retry of timedout e-mail Reply with quote

Few of my mail addresses have wrong domains like gmmail.com, rediiifmail.com etc. OpenEMM/sendmail keeps trying to send mail to these addresses. It apparently has been trying to send them after every one minute since the last 15 hours.

Couple of questions:
1) How can i tell OpenEMM/Sendmail to not to retry sending mails if connection timeout is received for say 5 attempts?

2) How can i change the retry interval for such e-mails. Will updating the -q1m to -q120m for queue "QUEUE" in mailer.sh help?

Any help will be appreciated.
Back to top
View user's profile Send private message
sapeksh



Joined: 19 Nov 2008
Posts: 4

PostPosted: Thu Nov 20, 2008 12:12 pm    Post subject: Resolution to the questions in my previous post Reply with quote

1) How can i tell OpenEMM/Sendmail to not to retry sending mails if connection timeout is received for say 5 attempts?

Resolution: Added the following configurations to my sendmail.m4 file
define(`confTO_RESOLVER_RETRANS_FIRST', `2s')
define(`confTO_RESOLVER_RETRY_FIRST', `2')
define(`confTO_RESOLVER_RETRANS_NORMAL', `10s')
define(`confTO_RESOLVER_RETRY_NORMAL', `5')

Still have to test it though with a batch of emails.

2) How can i change the retry interval for such e-mails. Will updating the -q1m to -q120m for queue "QUEUE" in mailer.sh help?

Resolution: Added the following configurations to my sendmail.m4 file:
define(`confMIN_QUEUE_AGE',`3h') (Default is every time the queue is scanned, which in mailer.sh is 1 minute)
define(`confTO_QUEUERETURN', `1d') (Default is 5 days)

Suggestions/improvements are welcome.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OpenEMM Support Forum Index -> Installation All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


SourceForge.net Logo Powered by phpBB © 2001, 2005 phpBB Group