Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

So I have set up a mailserver today following this guide.

The only problem with the guide itself was that dovecot.conf was in /usr/share/dovecot and not in the location specified in the guide.

When I had installed squirrelmail and tried to login with my test mail account called mailtester, it first gave me an error like ERROR: Connection dropped by IMAP server. By reading the logs I figured out it couldn't find the mail directory, so I created it under /home/mailtester/mail and I could login.

Now the problem is whenever I try to send a mail from within squirrel I get:

Message not sent. Server replied:
Service not available, closing channel
421 4.3.0 collect: Cannot write ./dfr04CRfQT012544 (bfcommit, uid=0, gid=114): No such file or directory

Also when I send an email to mailtester@mydomain.com (where mydomain.com is my domain) I don't seem to receive it.

I also checked this which gave me:

dnsreport

(I blacked out my server's IP and domain)

Any ideas how to fix this?

share|improve this question
    
Is postfix running and listening on port 25? Do you have a firewall or does your hosting provider have one? –  Ladadadada Jan 4 '13 at 12:57
    
@Ladadadada How do I check on what port it is listening on? Also my provider has a firewall, but it has currently no entries, at least no entries made by me. –  Wingblade Jan 4 '13 at 14:45
    
sudo netstat -tlnp | egrep "smtpd|:25" If you get nothing, it's not running. If you get smtpd listening on the wrong port, well, that's your problem. –  Ladadadada Jan 4 '13 at 14:57
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.