POP3 - can't login with [email protected] - but with user.domain is ok?

Discussion in 'Server Operation' started by flameproof, Dec 26, 2008.

  1. flameproof

    flameproof Member

    I have a virtual server with 3 domains on it sharing the same VPS IP. I use Webmin/Virtualmin to manage it.

    I have 2 problems: mx.domain3.com does not work. I get "invalid host" when trying pop3 login. But I can pop3 login to domain3.com as user.domain3

    There is also no DNS record for mx.domain3.com. Domain 1 + 2 have. How to set that mx.domain3.com ?

    Domain 1 and 2 work, but:

    I can not pop3 login with user@domain#.com but with user.domain# it works. Same for telnet login.

    I presume it's Postfix related, but so far no luck fixing it. What can I do next?
     
  2. falko

    falko Super Moderator ISPConfig Developer

    You must create an A record for mx.domain3.com. To do this, you have to find out the authoritative nameservers:
    Code:
    dig ns domain3.com
    (maybe these are the nameservers of your domain registrar? If that is the case, then you can create the DNS record in the registrar's web interface.)

    What POP3/IMAP server are you using?
     
  3. chipsafts

    chipsafts New Member

    what does

    dig MX domainx.com

    show for each domain ?
     
  4. flameproof

    flameproof Member

    Code:
    dig ns domain3.com
    
    ;; QUESTION SECTION:
    ;domain3.com.            IN      NS
    
    ;; ANSWER SECTION:
    domain3.com.     173     IN      NS      dns2.host.com.
    domain3.com.     173     IN      NS      dns1.host.com.
    
    
    and dig MX.....




    Code:
    dig mx domain3.com
    ;; QUESTION SECTION:
    ;domain3.com.            IN      MX
    
    ;; ANSWER SECTION:
    domain3.com.     3600    IN      MX      10 mx.domain3.com.
    domain3.com.     3600    IN      MX      10 domain3.com.
    
    I use Dovecot for POP/IMAP

    For domain3 pop3 login from client does not work at all now. It can receive mail. mail.domain3.com and mx.domain3.com give me a invalid host! - domain3.com gives me error: authentications failed

    For domain1 and domain2 web works fine, howver I have a NS mismatch between my VPS and the registrar and fix that new. But domain 3 matches. There seem to be an underlying error somewhere else, maybe Webmin related.

    Ok, for domain1 I get with dig mx:


    Code:
    ;; ANSWER SECTION:
    domain1.com.         300     IN      MX      0 domain1.com.
     
    Last edited: Dec 26, 2008
  5. falko

    falko Super Moderator ISPConfig Developer

    You must create an A record for mx.domain3.com on dns1.host.com and dns2.host.com. These are probably the nameservers of your registrar... ?

    What's in your dovecot.conf?
     
  6. flameproof

    flameproof Member

    I had a few out days, just back from the land of Oz (Gee what a place!!!)

    That login "problem" is solve. VIrtualmin sets it up in that way. It's ok then. Next... still get errors when I login.

    I presume with no A record I should get "invalid host". I am nor sure what and how to set. Here's what I got:

    Code:
    A  	domain1.com. 	Shared.IP.#  	3600  	Manual  	Active
    CNAME  	www.domain1.com. 	domain1.com.  	3600  	Manual  	Active
    MX  	domain1.com. 	10 domain1.com. 
    
    A  	domain2.com.hk. 	Shared.IP.#  	3600  	Manual  	Active
    CNAME  	www.domain2.com.hk. 	domain2.com.hk.  	3600  	Manual  	Active
    MX  	domain2.com.hk. 	10 mx1.myhost.com. 
    
    A  	domain3.com. 	Shared.IP.#  	3600  	Manual  	Active
    A  	mail.domain3.com. 	Shared.IP.#  	3600  	Manual  	Active
    A  	mx.domain3.com. 	Shared.IP.#  	3600  	Manual  	Active
    CNAME  	www.domain3.com. 	domain3.com.  	3600  	Manual  	Active
    MX  	domain3.com. 	10 mx.domain3.com.  	3600  	Manual  	Active
    MX  	domain3.com. 	10 domain3.com.  	3600  	Manual  	Active
    
    It looks a little messed up as I was playing around with it...

    When I do a POP3 mailcheck I get:

    domain1.com - ok
    mx.domain1.com - invalid host!
    domain2.com.hk - ok
    mx.domain2.com.hk - ok
    domain3.com - error: authentication failed
    mx.domain3.com - error: authentication failed

    I deleted all #.... entries:

    Code:
    protocols = imap imaps pop3 pop3s
    mail_location = maildir:~/Maildir
    protocol imap {
    }
    protocol pop3 {
    pop3_uidl_format = %08Xu%08Xv
    }
    protocol lda {
    }
    auth default {
    }
    dict {
    }
    plugin {
    }
    
    And here is postfix....:


    Code:
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    inet_interfaces = all
    mydestination = $myhostname, localhost.$mydomain, localhost, my_vps_host.com
    unknown_local_recipient_reject_code = 550
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    debug_peer_level = 2
    debugger_command =
    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
    sender_bcc_maps = hash:/etc/postfix/bcc
    mailbox_command = /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME
    home_mailbox = Maildir/
    smtpd_sasl_auth_enable = yes
    smtpd_sasl_security_options = noanonymous
    broken_sasl_auth_clients = yes
    smtpd_recipient_restrictions = permit_mynetworks permit_sasl_authenticated reject_unauth_destination
    virtual_alias_maps = hash:/etc/postfix/virtual
    
    I presume there are plenty of errors. Any hint is welcome!


    Update:
    Problems with the A record are fixed now. MX is working. Everything fine. Ready for action!
     
    Last edited: Jan 6, 2009

Share This Page