New User? Register here - Existing Users: Username: Password: [Advanced Login]

 

 

Current Poll

What language for system administration do you use ?







( 731 votes ~ 3 comments )

 

Weblog entry #1 for jesperkp

Lost with the sendmail.conf system
Posted by jesperkp on Tue 22 Feb 2011 at 18:11
Tags: ,
Im running a small server for my family and hosting a couple of domains for another family.

As Im using a sendmail/cyrus sollution - I am using the Anfi's patch http://open-sendmail.sourceforge.net/
I havent been able to "tweak" sendmail.mc for ages as I am totally lost in the Debian sendmail.conf system.

I have also tried to find a way to disable the sendmail.conf (ie. not relying on sendmailconf software) - but using sendmail's own original macro system. But to no avail...

Anyone with any ideas on either how write your sendmail.mc - macrofy it and end up with a pleasing working sendmail.cf without having to fiddle with the system sent with Debian (sendmailconf)?

An example extract from my sendmail.mc that I cannot see how to manage in the sendmail.conf system:

define(`SMMAP_SOCKET',`/var/lib/cyrus/socket/smmapd')dnl
define(`CYRUS_LMTP_SOCKET',`/var/lib/cyrus/socket/lmtp')dnl
FEATURE(`anfi/vcyrus')dnl
MAILER_DEFINITIONS
MAILER(`anfi/cyrusv3')dnl

 

Comments on this Entry

Posted by simonw (84.45.xx.xx) on Tue 22 Feb 2011 at 20:59
[ Send Message | View Weblogs ]
This more than the atrocious security record is what drove me to try Postfix originally and I haven't touched a sendmail config file in 6 years. Bliss.

Sometimes it is quicker to learn a whole new MTA than to reconfigure the one you know.

[ Parent | Reply to this comment ]

Posted by jesperkp (94.145.xx.xx) on Tue 22 Feb 2011 at 22:00
[ Send Message | View Weblogs ]
Its the age old struggle between strawberries and drapes :-)

Lets just say that the sendmail security record isnt as bad as it once was.
A quick look at US-CERT tells the story that its been quite a while since something bad was found inside sendmail.

The sendmail m4 macro config files are nothing like the old .cf files (they were nasty to edit for none-guru's).

I have tried postfix and ended up running away screaming from the configuration - but then again using a database backend with PostgreSQL for users and cyrus with virtual hosting isnt what most systems are made for.

No - you dont have to suggest using mysql as it is faster and all that (ref. strawberries and drapes :-)

But thank you for the suggestion on Postfix migration.

[ Parent | Reply to this comment ]

Posted by simonw (84.45.xx.xx) on Tue 22 Feb 2011 at 22:22
[ Send Message | View Weblogs ]
Postgres database backend for virtual hosting is how I run most of my postfix boxes :) I didn't try MySQL, it might be faster but the Postfix cache means I don't hit the database that often and it is probably all in RAM anyway. I agree sendmail wasn't made to do that sort of thing or isn't that what you meant.

[ Parent | Reply to this comment ]

Posted by jesperkp (94.18.xx.xx) on Wed 23 Feb 2011 at 14:31
[ Send Message | View Weblogs ]
If I dont remember wrong - the Postfix / database setup was a setup where regular configuration file information was just saved in a database.
My setup with Sendmail is fairly simple - and overly easy to maintain (if it wasnt for debian sendmailconfig!).

Im not interested in moving configuration/mapping files to the database - as the only mapping needed is handled by open-sendmail and dont neeed any configuration.

If you want me to explain how it works and why I feel it works great I will do so (you might even find it interesting :-D)

Regarding the "I agree sendmail wasn't made to do..." then I think you missed the whole point of sendmail (*joke*). Sendmail is so unforgivenly complex and not least capable in its system that there is few things imaginable that cant be made... unfortunately writing the .cf files to do it can be nasty. I suspect that is why Debian decided to add the sendmailconfig utility.

[ Parent | Reply to this comment ]

 

 

Flattr