Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Setting up mail server on Ubuntu 8.04

Avatar of elorc
elorcFlag for United States of America asked on
Email ServersLinux Distributions
26 Comments1 Solution2880 ViewsLast Modified:
I've never set up a mail server from scratch on a Linux environment, so I followed the guide at http://flurdy.com/docs/postfix/. I only did the basic section (for now) to test it, and then I figured I'd go ahead with testing the rest of it.

It's not working, though. From the server, I connect via telnet to port 25 and do the following (my input is bold):

[localusr@godsofdestruction:~]$ telnet localhost 25
Connected to localhost.
Escape character is '^]'.
220 ip-68-178-255-52.ip.secureserver.net ESMTP Sendmail 8.14.2/8.14.2/Debian-2build1; Mon, 5 Jul 2010 16:19:44 -0700; (No UCE/UBE) logging access from: localhost(OK)-localhost []
EHLO mail.godsofdestruction.org
250-ip-68-178-255-52.ip.secureserver.net Hello localhost [], pleased to meet you
250 HELP
MAIL FROM: frank@testsite.com
250 2.1.0 frank@testsite.com... Sender ok
RCPT TO: frank@godsofdestruction.org
250 2.1.5 frank@godsofdestruction.org... Recipient ok
354 Enter mail, end with "." on a line by itself
This is some random test message.

421 4.3.0 collect: Cannot write ./dfo65NJiJG030265 (bfcommit, uid=0, gid=151): No such file or directory
Connection closed by foreign host.

I don't understand what this means or where I'm supposed to look. I had assumed maybe it was something with the Postfix data and queue folders. I didn't explicitly set them in the configuration file, so they're using the default Postfix folders which are:

data_directory = /var/lib/postfix
queue_directory = /var/spool/postfix

I checked them out and their ownership is set to postfix:postfix.

Next, I checked out /var/log/mail.log and I'm seeing these:

[localusr@godsofdestruction:~]$ sudo tail -f /var/log/mail.log
Jul  5 16:27:10 ip-68-178-255-52 postfix/postdrop[30249]: warning: mail_queue_enter: create file maildrop/161533.30249: Permission denied

This is on Ubuntu 8.04. Any ideas?
Avatar of tniemetz
tniemetzFlag of United States of America image

Our community of experts have been thoroughly vetted for their expertise and industry experience.

This problem has been solved!
Unlock 1 Answer and 26 Comments.
See Answers