Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 27th June 2010, 20:30
dmontpe dmontpe is offline
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default Problem with Postfix/Dovecot simple server: no such file or directory

After trying several ones, I've come down to the simplest of server configurations and still can't get it to work. It's just Postfix/Dovecot by the tutorial from centos.org.

I can send mail using telnet fine but when I try to connect from home via Thunderbird I get 'Internal error occurred'. The log says directories don't exist. Now, I guess this should be created by dovecot so maybe it's a permissions issue? Please, help!

Versions: Centos 5.5 / Postfix 2.3.3 / Dovecot 1.0.7

/var/log/maillog:
Code:
Jun 27 19:12:47 mail dovecot: IMAP(admont): open(/home/admont/Maildir/temp./root.19207.839b277620b0522c) failed: No such file or directory
Jun 27 19:12:47 mail dovecot: IMAP(admont): file_dotlock_open(/home/admont/Maildir/dovecot-uidlist) failed: No such file or directory
Jun 27 19:13:49 mail dovecot: imap-login: Login: user=<admont>, method=PLAIN, rip=::ffff:88.23.112.146, lip=::ffff:173.203.80.152
Jun 27 19:13:49 mail dovecot: IMAP(admont): open(/home/admont/Maildir/.temp./root.19212.d7d30d9638e5dad9) failed: No such file or directory
Jun 27 19:13:49 mail dovecot: IMAP(admont): file_dotlock_open() failed with file /home/admont/Maildir/dovecot.index.log: No such file or directory
Jun 27 19:13:49 mail dovecot: IMAP(admont): open(/home/admont/Maildir/temp./root.19212.f9c7a315ab83b6d0) failed: No such file or directory
Jun 27 19:13:49 mail dovecot: IMAP(admont): file_dotlock_open(/home/admont/Maildir/dovecot-uidlist) failed: No such file or directory
dovecot.conf
Code:
protocols = imap imaps pop3 pop3s
login_process_size = 64
mail_location = maildir:~/Maildir
protocol imap {
}
protocol pop3 {
  pop3_uidl_format = %08Xu%08Xv
}
protocol lda {
  postmaster_address = postmaster@example.com
}
auth default {
  mechanisms = plain
  passdb pam {
  }
  userdb passwd {
  }
  user = root
}
dict {
}
plugin {
}
/postfix/main.cf
Code:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
myhostname = mail.estacionposibilidad.es
mydomain = estacionposibilidad.es
myorigin = $mydomain
inet_interfaces = all
inet_interfaces = localhost
mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
unknown_local_recipient_reject_code = 550
mynetworks = 127.0.0.0/8
relay_domains =
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
home_mailbox = Maildir/
debug_peer_level = 2
debugger_command =
         PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
         xxgdb $daemon_directory/$process_name $process_id & sleep 5
sendmail_path = /usr/sbin/sendmail.postfix
newaliases_path = /usr/bin/newaliases.postfix
mailq_path = /usr/bin/mailq.postfix
setgid_group = postdrop
html_directory = no
manpage_directory = /usr/share/man
sample_directory = /usr/share/doc/postfix-2.3.3/samples
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
smtpd_delay_reject = yes
smtpd_helo_required = yes
smtpd_helo_restrictions =
    permit_mynetworks,
    reject_non_fqdn_helo_hostname,
    reject_invalid_helo_hostname,
    permit
smtpd_sender_restrictions =
    permit_mynetworks,
    reject_non_fqdn_sender,
    reject_unknown_sender_domain,
    permit
smtpd_recipient_restrictions =
   reject_unauth_pipelining,
   reject_non_fqdn_recipient,
   reject_unknown_recipient_domain,
   permit_mynetworks,
   reject_unauth_destination,
   check_sender_access
         hash:/etc/postfix/sender_access,
   reject_rbl_client zen.spamhaus.org,
   reject_rbl_client bl.spamcop.net,
   check_policy_service unix:postgrey/socket,
   permit
Reply With Quote
Sponsored Links
  #2  
Old 28th June 2010, 13:18
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

You must send an email to a new account first - Maildir will then be created automatically.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 28th June 2010, 20:22
dmontpe dmontpe is offline
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I already did and my message didn't bounce back so I guess it was delivered.
Reply With Quote
  #4  
Old 29th June 2010, 13:57
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

What's in the mail log when you try to send an email to that account?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #5  
Old 29th June 2010, 17:01
dmontpe dmontpe is offline
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for taking the time, Falko.

I tried again and got one line:

Code:
Jun 29 15:51:28 mail dovecot: imap-login: Disconnected: rip=::ffff:79.153.177.214, lip=::ffff:173.203.80.152
Now, along with that I just saw this from earlier, which sounds important though I have no clue what it means:

Code:
Jun 29 15:40:34 mail postfix/qmgr[19069]: 7A68CA85B0: from=<root@estacionposibilidad.es>, size=691, nrcpt=1 (queue active)
Jun 29 15:40:34 mail postfix/local[17867]: warning: valid_hostname: invalid character 47(decimal): /root
Jun 29 15:40:34 mail postfix/local[17867]: fatal: unable to use my own hostname
Jun 29 15:40:35 mail postfix/qmgr[19069]: warning: premature end-of-input on private/local socket while reading input attribute name
Jun 29 15:40:35 mail postfix/qmgr[19069]: warning: private/local socket: malformed response
Jun 29 15:40:35 mail postfix/qmgr[19069]: warning: transport local failure -- see a previous warning/fatal/panic logfile record for the problem description
Jun 29 15:40:35 mail postfix/master[19052]: warning: process /usr/libexec/postfix/local pid 17867 exit status 1
Jun 29 15:40:35 mail postfix/master[19052]: warning: /usr/libexec/postfix/local: bad command startup -- throttling
Jun 29 15:40:35 mail postfix/qmgr[19069]: 7A68CA85B0: to=<root@estacionposibilidad.es>, orig_to=<root>, relay=none, delay=43833, delays=43832/1.1/0/0, dsn=4.3.0, status=deferred (unknown mail transport error)
Reply With Quote
  #6  
Old 30th June 2010, 15:10
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Can you post your /etc/postfix/main.cf?
What's the output of
Code:
hostname
and
Code:
hostname -f
? What's in /etc/hosts?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 30th June 2010, 15:42
dmontpe dmontpe is offline
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

#hostname
/root

#hostname -f
hostname: Unknown host

/etc/hosts:
127.0.0.1 localhost localhost.localdomain
173.203.80.152 mail.estacionposibilidad.es

And my /etc/postfix/main.cf is the same I posted in my first message. I haven't changed anything.
Reply With Quote
  #8  
Old 1st July 2010, 14:53
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,735 Times in 2,571 Posts
Default

Quote:
Originally Posted by dmontpe View Post
#hostname
/root
That's no valid hostname. Please run
Code:
system-config-network
and correct it.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #9  
Old 2nd July 2010, 13:27
dmontpe dmontpe is offline
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Default

OK. Now that part was an easy fix. I found my hostname was correct in network config, so I figured a reboot might work. I would've tried that earlier had I realized something was wrong with hostname, so thanks for the tip. I still need to figure out the rest.

Now, I don't understand one thing. When I first tried configuring Postfix, I did with Courier and MySQL, so I knew exactly what the usernames and passwords were because I added them myself to the db. But with this "simple" config, I don't know what I should use to connect and how to add new addresses. My first guess is I create new addresses by creating new server users and passwords. Is that right?

Now, after reboot I tried sending an email and then checking my mail again and this is what I got in /var/log/maillog:

Code:
Jul  2 12:05:37 mail dovecot: imap-login: Aborted login: rip=::ffff:79.153.177.214, lip=::ffff:173.203.80.152
Jul  2 12:06:43 mail dovecot: imap-login: Login: user=<admont>, method=PLAIN, rip=::ffff:79.153.177.214, lip=               ::ffff:173.203.80.152
Jul  2 12:07:11 mail last message repeated 2 times
Jul  2 12:19:49 mail dovecot: Time just moved backwards by 73 seconds. This might cause a lot of problems, so                I'll just kill myself now. http://wiki.dovecot.org/TimeMovedBackwards
I will check the solutions for this in that web page but I'll go ahead and post this in case you have any suggestions.
Reply With Quote
  #10  
Old 2nd July 2010, 13:49
dmontpe dmontpe is offline
Junior Member
 
Join Date: Jun 2010
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Update on the 'time moved backwards' error:

I checked and ntpd does start at boot before dovecot does, so the problem isn't there. I'll keep checking the other possible causes for this problem.
Reply With Quote
Reply

Bookmarks

Tags
postfix dovecot centos

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Forbidden 403; Samba access; config of maildeamon fawkes Installation/Configuration 4 14th January 2010 18:16
High on Lenny - Lvm Mount Problem Serverman Technical 1 23rd June 2009 16:26
I don't recieve mail. privir Installation/Configuration 2 3rd June 2009 22:08
Systemimager (rsync) doesn't copy all comedit HOWTO-Related Questions 11 19th January 2007 17:17
Webmail Relay Error palkat General 17 23rd April 2006 18:12


All times are GMT +2. The time now is 05:57.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.