email problems and setting

Discussion in 'ISPConfig 3 Priority Support' started by Tom John, Feb 19, 2022.

  1. Tom John

    Tom John Active Member HowtoForge Supporter

    HI Guys,
    i am using ubuntu 20.04 and ispconfig 3
    I still have problems with sending emails like this thread:
    https://www.howtoforge.com/community/threads/email-problems.88436/
    I tried the email on 3 servers already 2 of them are setup new according to: https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/

    When i want to send a message with my local email client i get the following error:
    Code:
    Error performing TLS handshake: an unexpected TLS packet was received.
    
    in the logfiles i can see :
    Code:
    Feb 19 18:56:07 server3 postfix/submission/smtpd[1390157]: connect from unknown[185.58.208.48]
    Feb 19 18:56:07 server3 postfix/submission/smtpd[1390157]: lost connection after CONNECT from unknown[185.58.208.48]
    Feb 19 18:56:07 server3 postfix/submission/smtpd[1390157]: disconnect from unknown[185.58.208.48] commands=0/0
    
    
    the mx record of the domain is:
    Code:
    Name : is empty
    typ : mx
    pref: 10
    wert: mail.wp-fit.com
    
    when i send an email to [email protected] i see in the logfiles:
    Code:
    Feb 19 19:03:15 server3 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1390947, secured, session=<ApM20GLY+NF/AAAB>
    Feb 19 19:03:15 server3 dovecot: imap([email protected])<1390947><ApM20GLY+NF/AAAB>: Logged out in=90 out=936 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    
    
    But i can not see the email in the email folder on my email client nor on the email folder of webmail of the server.
    When i send an email from webmail to another email adress i get this error in the logs:
    Code:
    Feb 19 19:07:00 server3 postfix/qmgr[205325]: CD6768009E0: from=<[email protected]>, size=595, nrcpt=1 (queue active)
    Feb 19 19:07:00 server3 postfix/lmtp[1391108]: connect to 127.0.0.1[127.0.0.1]:10026: Connection refused
    Feb 19 19:07:00 server3 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1391110, secured, session=<Zjaq3WLYoNJ/AAAB>
    Feb 19 19:07:00 server3 postfix/lmtp[1391108]: CD6768009E0: to=<[email protected]>, relay=none, delay=0.09, delays=0.07/0.02/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]:10026: Connection refused)
    Feb 19 19:07:00 server3 dovecot: imap([email protected])<1391110><Zjaq3WLYoNJ/AAAB>: Logged out in=456 out=693 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    Feb 19 19:07:01 server3 postfix/smtpd[1386695]: warning: unknown[5.34.205.151]: SASL LOGIN authentication failed: UGFzc3dvcmQ6
    Feb 19 19:07:01 server3 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1391113, secured, session=<go+13WLYpNJ/AAAB>
    Feb 19 19:07:01 server3 dovecot: imap([email protected])<1391113><go+13WLYpNJ/AAAB>: Logged out in=70 out=668 deleted=0 expunged=0 trashed=0 hdr_count=0 hdr_bytes=0 body_count=0 body_bytes=0
    Feb 19 19:07:02 server3 postfix/smtpd[1386695]: disconnect from unknown[5.34.205.151] ehlo=1 auth=0/1 rset=1 quit=1 commands=3/4
    Feb 19 19:07:02 server3 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1391127, secured, session=<IJ+83WLYptJ/AAAB>
    Feb 19 19:07:02 server3 dovecot: imap([email protected])<1391127><IJ+83WLYptJ/AAAB>: Logged out in=316 out=1548 deleted=0 expunged=0 trashed=0 hdr_count=1 hdr_bytes=246 body_count=0 body_bytes=0
    Feb 19 19:07:02 server3 dovecot: imap-login: Login: user=<[email protected]>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=1391131, secured, session=<8KW93WLYqNJ/AAAB>
    
    postgrey is active
    Code:
    ● postgrey.service - LSB: Start/stop the postgrey daemon
         Loaded: loaded (/etc/init.d/postgrey; generated)
         Active: active (exited) since Mon 2022-02-14 11:51:47 CET; 6 days ago
           Docs: man:systemd-sysv-generator(8)
          Tasks: 0 (limit: 9485)
         Memory: 0B
         CGroup: /system.slice/postgrey.service
    
    
    
    Can you give me some help what i am doing wrong with a fresh installed server why the email does not work?
    thanks a lot for your help
     
    Last edited: Feb 20, 2022
  2. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Which client? which operating system? More info is appreciated :)
    These log lines indicate a imap login, while a SMTP log line would be written by Postfix and not Dovecot.

    Seems like it's simple: there is no A record for mail.wp-fit.com.

    By the way, I would recommend not giving each domain their own mail. subdomain Writing a post on it now, will send you the link later ;)
     
  3. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  4. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi there,
    thanks a lot for your answer and the post how to setup email. Now its more clear to me however i would like to ask some more questions if it does not bother.
    1. if i have many domains on a server, do i need to setup smtp.domain.com and imap.domain.com for each domain or is there another solution for that?
    2. should i setup one mailserver on an extra server (not the same like the webserver) like smtp.mydomain.com and imap.mydomain.com for all the domains i have on several servers? So if i have 1 domain on a server like newweb.com i can setup newweb.com with smtp.mydomain.com and imap.mydomain.com ?
    i am a bit confused about that.
    OR should i use the servername like imap.server1.com and smtp.server1.com?
    3. to fix my problem should i delete mx record mail.mydomain.com and setup smtp.mydomain.com and imap.mydomain.com ? or would it be better to add an A Record for mail.mydomain.com?
    As i have more servers i would like to use the correct way for the future as well.
    4. my email client is evolution on linux ubuntu 21.10 system.
    5. the mailserver settings on my evolution is as follows:
    I use actually : imap : server: server1.myserver.com port 993 TLS on dedicated port
    smtp: server: server1.myswer.com port 587 Tls on dedicated port
    is this correct ?
    and what would be pop 3 for the same email?

    Thanks a lot for your kind help on a sunday
     
  5. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Read the post again ;) It clearly tells you example.com is your own domain and you should not add additional names for every client.

    You can let every user use smtp.example.com and imap.example.com and host their email domain on the separate mailserver.

    For a quickfix, set up a A record. For a good fix, set the mx record to point to mx1.example.com or whatever the hostname of the mailserver is ;)

    Like I explained in the other post, use smtp.example.com and imap.example.com and set up a cert for that.
     
  6. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi,
    thanks for your detailed answer.
    I understand that for a good solution to setup my own mailserver on a separate server with mx1.mycompanyname.com and mx2.mycompanyname.com
    So every domain on the server client-domain.com use these mx1 and mx2 domains as mailserver.
    How do i setup a mailserver is there a post how to do that with ubuntu and ispconfig? would it be ok to setup an ispconfig standard install (automatic installation) according to:
    https://www.howtoforge.com/ispconfig-autoinstall-debian-ubuntu/
    thanks a lot for you help and sorry for not understanding that yet
     
  7. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

  8. Tom John

    Tom John Active Member HowtoForge Supporter

    Hi
    thanks for your answer.
    what email do i need to send a message for get the paid support.
    I would like to check out what is going on on the servers why it does not work to send emails, i have checked my other servers and have the same problem that i can not send emails so there must be a fault.
    To make the A record did not solve the problem.
     
  9. Th0m

    Th0m ISPConfig Developer Staff Member ISPConfig Developer

    Just send me a PM ;)
     

Share This Page