postfix +dovecot on CentOs VPS via unix CLI

Discussion in 'Installation/Configuration' started by charlotte, Dec 14, 2012.

  1. charlotte

    charlotte New Member

    Hi,

    Please understand I am an absolute beginner at terminal unix command line and everything to do with setting up an unmanaged VPS. However I have done everything on my own from reading in forums and tutorials.

    I've got as far as installing everything for my drupal site which is up and running EXCEPT for mail which is proving very hard to learn.

    I have been following this tutorial : http://library.linode.com/email/postfix/dovecot-mysql-centos-5#sph_set-the-hostname

    postfix has no errors on restart and neither does dovecot but running command:

    telnet localhost 25

    it just gets connection closed by foreign host.

    Also I have to force seeing log by:

    cat /var/log/maillog

    and get the following last line:

    postfix/error[10819]: 8CA3B10D38: to=<[email protected]>, relay=none, delay=163519, delays=163519/0.02/0/0, dsn=4.4.1, status=deferred (delivery temporarily suspended: connect to alt2.gmail-smtp-in.l.google.com[2607:f8b0:4002:c05::1b]:25: Network is unreachable)


    Please any help would be greatly appreciated. Been working on this for two days.:(
     
  2. Mark_NL

    Mark_NL Member

    It's trying via IPv6 .. is IPv6 working correctly on your VPS? If not, fis that first and this problem will resolve itself ;)
     
  3. charlotte

    charlotte New Member

    I hope you are right!

    Yes, that option is available but I haven't selected it. In fact I added a declaration in configuration to say using 4 not 6.

    I will test it now before I go into other things I was thinking like IP tables firewall blocks or the position of the MailDir and maybe other users set up previously causing confusion. The other one is in destinations where I saw in a tutorial the localhost and domain inputed but I though as had already been declared in main.cf file that $domain and $hostname would follow in sync for that.

    Thanks and will report back.
     
  4. charlotte

    charlotte New Member

    No it still isn't working. :(


    Dec 15 09:10:01 mysysname dovecot: master: Error: service(auth): command startup failed, throttling
    Dec 15 09:10:01 mysysname dovecot: log: Error: service(auth): child 13235 returned error 89 (Fatal failure)
    Dec 15 09:10:01 mysysname postfix/pipe[13233]: 77C8B1460C: to=<[email protected]>, relay=dovecot, delay=0.1, delays=0.04/0.01/0/0.05, dsn=4.3.0, status=deferred (temporary failure)
     
  5. charlotte

    charlotte New Member

    Maildir not right

    In a previous tutorial had set up a user linked to mail database which linked to /home/user/Maildir

    I still see that user but since then think dropped db for that one. So with new tutorial one user is said up called "mail' and interesting thing is when I finger mail I see that it /sbin/nologin but when i finger previous user it says /sbin/bash The other interesting thing is when I go to /home I get 'vmail' alongside previous user and within that folder no Maildir folder but dovecot-deliver.log

    So something is messed up with user and Maildir for latest created database.

    Should I drop the current database, delete all users and start again or will that make matters worse? Why isn't user 'mail' in my home folder with a Maildir in that?
     
  6. Mark_NL

    Mark_NL Member

    Hmm, ok .. .you might want to double/triple check all the permissions on your mailboxes.

    you probably have set this:
    postconf -e 'virtual_uid_maps = static:5000'
    postconf -e 'virtual_gid_maps = static:5000'

    Make sure the maildir /var/vmail (for example) and everything in it is owned by uid/gid 5000 and dovecot also uses that 5000 (vmail) user (check master.cf)
     
  7. charlotte

    charlotte New Member

    thank you

    Thanks very much for your help, I will take into consideration your notes when I get there again. Will be reinstalling server today because have made a terrible mess of things.
     
  8. Landi20

    Landi20 New Member

    you unistall all server your only the postfix
    no problem i where for help and to be helped
     
  9. Mark_NL

    Mark_NL Member

    Haha we've all been there! I think i've started to mess around with Linux 10 years ago. Those days mostly went like this: install, try to set something up, didn't work, start screwing around, nothing worked anymore, reinstall .. that times 100 ;) You learn the most by making mistakes, .. it's part of the learning process. Good luck
     

Share This Page