PostfixServer

From MyLinuxNotes

Jump to: navigation, search

Contents

Setup

Here is the HOWTO that I used to setup my system. It was a big help and got me running in no time.

Upgrading

I recently upgraded my system via up2date-nox -u and it broke postfix. I could no longer send mail and i got no error messages. I found that mailq as well as other executiables were gone. I did see a mailq.postfix as well as .postfix for the others. I also noticed /etc/alternatives/mta-mailq. As usual a google search provided the answer:

update-alternatives --auto mta

I later found that the errors in my apache logs because I am using Squirrelmail.

Compiling from Source

Dude, it was easy. Probably the easiest program to install from source. Just follow the INSTALL document and you'll be good to go.

Errors

I was getting a bunch of these errors:

   warning: 127.0.0.1: hostname localhost verification failed: Host not found

It was because Postfix is running chrooted. To fix it I copied /etc/hosts to etc/ of the chroot directory. The chroot directory is determined by the queue_directory directive in main.cf.

After a recent install for a Satilite system I got these errors:

   postfix/master[3556]: fatal: /etc/postfix/master.cf: line 84: bad hostname or network address: ::1
   postfix/postdrop[22016]: warning: unable to look up public/pickup: No such file or directory

Commenting out the following line in /etc/postfix/master.cf fixed it:

   ::1:smtp       inet n   -       -       -       -       smtpd

Reading Logs

Here is a great discription of the entries in /var/log/maillog.

Flushing the Queue

Check out the postsuper man page.

Personal tools