Home : Linux :


I've been working with/using Apache, Sendmail, DNS and Samba for a number of years. I started using Qmail/vmailmgr/Courier/SquirrelMail a couple of years ago... all lots of years now and most of this stuff is pretty old. Moving to new hardware and Debian has motivated me to add some Sendmail notes (below).

Most servers are relatively easy to setup on a basic level. A text editor and/or Webmin will do the job. Tools like linuxconf and Mandrake wizards just cause headaches.

The main focus here will be personal and small business servers. Anyone with a fixed IP and a 24/7 internet connection can benefit from running their own servers. For low traffic sites like this one a basic DSL connection is just fine.


My server no longer has a public interface, but it is NATed to a fixed IP (w/ A and MX records) and does allow in and outgoing mail. Following are just the basic things I had to do to get my Debian Wheezy sendmail functional.

To get sendmail to listen on all interfaces/addresses, I removed "Addr='', " from DAEMON_OPTIONS (sendmail.mc). I also changed "FEATURE(`msp', `[]', `25')dnl" to "FEATURE(`msp')dnl" (submit.mc). The later just allows something other than localhost/ in some header fields (none that are important).

To get sendmail to identify itself properly (MX hostname), I added 'define(`confDOMAIN_NAME', `myhostname.com')dnl' to both sendmail.mc and submit.mc.

Because my username gets a lot of spam, I added FEATURE(`virtusertable', `hash /etc/mail/virtusertable.db')dnl to sendmail.mc. This allowes 'username@hostname error:nouser User unknown' rejection entries (virtusertable file) while still allowing username to receive mail, e.g. 'foo: username' entries in the aliases file.

Running # sendmailconfig builds/sets everything up and (optionally) applies it to the running sendmail.
[ comment | link | top ]admin
Whois Search
Domain, Registrar or Nameserver lookup
[ comment | link | top ]

Back to: Linux