FreeBSD Server Administration

December 11, 2005

Postfix Mail Queue

List the mail queue:
# /usr/bin/mailq

Delete a mail by mail id (get the mail id with the above command):
# postsuper -d mail_id

Delete all message in the mail queue:
# postsuper -d ALL

Posted by FreeBSD Newbie at 09:05 PM | Comments (0)

July 21, 2005

SMTP May Mot Be Necessary

Postfix has been running on my servers for a few months, but I haven't been able to make SMTP Auth work, as a result, I can't send emails from my desktop. Finally I decided to finish the configuration by following the tutorial on postfix.org. But unfortunately, it didn't work after the first try. Then, a simple idea came out: why not try other SMTP servers instead of configuring mine? The SMTP server (exim) on my VPS relays any outbound emails after authentication.

I really should have thought of this earlier, although it's just a very simple trick, I think it's even a better solution...well, in my case.

Posted by FreeBSD Newbie at 04:43 PM | Comments (0)

April 02, 2005

A Silly Story

In a previous post, I said pop3 server's installation was very easy. Now, I try to install it on my second FreeBSD server, guess what? I couldn't make it work and looked for help on the mailing list.

Kris helped me very fast, the conversation went on like this:

Me: I installed qpopper and uncommented
pop3 stream tcp nowait root /usr/local/libexec/qpopper popper in inetd.conf, blah, blah... lots of background I thought useful.
But why doesn't it work?

Chris: What is logged on the server?

Me: The error message is "inetd[32476]: cannot execute /usr/local/libexec/popper: No such file or directory". But I checked the file, it does exist. I can execute it manually:
./qpopper

Chris: qpopper, not popper

Me: !$#%@$^

A FreeBSD newbie ignores the log information, a computer newbie fails to compare words.

Posted by FreeBSD Newbie at 08:56 AM | Comments (0)