How to manipulate sendmail queues (post all your info here)
Posted: Sat Sep 13, 2008 12:58 pm
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
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