Can't send or receive email!

Discussion in 'Installation/Configuration' started by sergio.morales, Jun 29, 2008.

  1. sergio.morales

    sergio.morales New Member

    Hey folks! Total newbie here. I installed ISPconfig as per the instructions in the Fedora9 Perfect server and all is well. However, I can't seem to send or receive email from the new client I made. Can someone help a newbie here and tell me where I should start looking?

    Pleas help!!

    sERGE
     
  2. Hans

    Hans Moderator Moderator

    Did you enable the Maildir format within ISPConfig under Management > Server > settings > Email?

    Please have a look within your mail logfile /var/log/mail.log.
    Use the command tail -f mail.log to follow what's happening. CTRL+C to quit.
     
  3. sergio.morales

    sergio.morales New Member

    Well I can send email now . . .

    Well, I can now send email, but receiving is still a no-go. I have indeed enabled the Maildir in ISPconfig ( I had it enabled already, but I disabled it and reenabled 5 minutes later). I don't really know what to look for in my maillog, so I'll include a snippit to see if anyone can see what it is I'm doing wrong . . .

    Jun 29 18:30:01 email-beststylesusa sendmail[9432]: m5TMU1Au009432: from=root, size=173, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
    Jun 29 18:30:01 email-beststylesusa postfix/smtpd[9433]: connect from localhost.localdomain[127.0.0.1]
    Jun 29 18:30:01 email-beststylesusa postfix/smtpd[9433]: setting up TLS connection from localhost.localdomain[127.0.0.1]
    Jun 29 18:30:01 email-beststylesusa sendmail[9432]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
    Jun 29 18:30:01 email-beststylesusa postfix/smtpd[9433]: Anonymous TLS connection established from localhost.localdomain[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Jun 29 18:30:01 email-beststylesusa postfix/smtpd[9433]: 431A03CA2CD: client=localhost.localdomain[127.0.0.1], [email protected]
    Jun 29 18:30:01 email-beststylesusa postfix/cleanup[9436]: 431A03CA2CD: message-id=<[email protected]>
    Jun 29 18:30:01 email-beststylesusa postfix/qmgr[26035]: 431A03CA2CD: from=<[email protected]>, size=797, nrcpt=1 (queue active)
    Jun 29 18:30:01 email-beststylesusa sendmail[9432]: m5TMU1Au009432: to=root@localhost, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30173, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 431A03CA2CD)
    Jun 29 18:30:01 email-beststylesusa postfix/smtpd[9433]: disconnect from localhost.localdomain[127.0.0.1]
    Jun 29 18:30:01 email-beststylesusa postfix/local[9437]: 431A03CA2CD: to=<[email protected]>, relay=local, delay=0.07, delays=0.05/0.01/0/0.01, dsn=2.0.0, status=sent (delivered to maildir)
    Jun 29 18:30:01 email-beststylesusa postfix/qmgr[26035]: 431A03CA2CD: removed
    Jun 29 19:00:01 email-beststylesusa sendmail[9806]: m5TN01qf009806: from=root, size=173, class=0, nrcpts=1, msgid=<[email protected]>, relay=root@localhost
    Jun 29 19:00:01 email-beststylesusa postfix/smtpd[9807]: connect from localhost.localdomain[127.0.0.1]
    Jun 29 19:00:01 email-beststylesusa postfix/smtpd[9807]: setting up TLS connection from localhost.localdomain[127.0.0.1]
    Jun 29 19:00:01 email-beststylesusa postfix/smtpd[9807]: Anonymous TLS connection established from localhost.localdomain[127.0.0.1]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Jun 29 19:00:01 email-beststylesusa sendmail[9806]: STARTTLS=client, relay=[127.0.0.1], version=TLSv1/SSLv3, verify=FAIL, cipher=DHE-RSA-AES256-SHA, bits=256/256
    Jun 29 19:00:01 email-beststylesusa postfix/smtpd[9807]: 6A4083CA2CD: client=localhost.localdomain[127.0.0.1], [email protected]
    Jun 29 19:00:01 email-beststylesusa postfix/cleanup[9810]: 6A4083CA2CD: message-id=<[email protected]>
    Jun 29 19:00:01 email-beststylesusa postfix/qmgr[26035]: 6A4083CA2CD: from=<[email protected]>, size=797, nrcpt=1 (queue active)
    Jun 29 19:00:01 email-beststylesusa sendmail[9806]: m5TN01qf009806: to=root@localhost, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30173, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 6A4083CA2CD)
    Jun 29 19:00:01 email-beststylesusa postfix/local[9811]: 6A4083CA2CD: to=<[email protected]>, relay=local, delay=0.08, delays=0.05/0.01/0/0.02, dsn=2.0.0, status=sent (delivered to maildir)
    Jun 29 19:00:01 email-beststylesusa postfix/qmgr[26035]: 6A4083CA2CD: removed
    Jun 29 19:00:01 email-beststylesusa postfix/smtpd[9807]: disconnect from localhost.localdomain[127.0.0.1]
    [root@email-beststylesusa log]# vi maillog
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Please make sure that the MX record of your domain is pointint to the right server. You can check that with
    Code:
    dig mx yourdomain.com
     
  5. sergio.morales

    sergio.morales New Member

    Still confused and maybe MORE broken

    This is the response to the dig mx mydomain.com: ; <<>> DiG 9.5.0rc1

    Now here's the problem: I was looking at my /etc/hosts and I saw 2 things that seemed odd. First, the localhost entry had localhost twice, so I deleted one of the instances, and I deleted my alias for email-beststylesusa.com (which was just plain email-beststylesusa) and I rebooted. I can't seem to get to the web GUI for ISPconfig, despite the fact that it says it's running! Email is shot too because I can't send or receive. SO, how badly did I just shoot myself in the foot? Is this recoverable? I set the entries back to their original state, but it still wont work!!

    HELP!

    sERGE
    <<>> mx email-beststylesusa.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 6317
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 3

    ;; QUESTION SECTION:
    ;email-beststylesusa.com. IN MX

    ;; ANSWER SECTION:
    email-beststylesusa.com. 21600 IN MX 10 68.167.129.3.email-beststylesusa.com.
    email-beststylesusa.com. 21600 IN MX 100 68.167.129.3.email-beststylesusa.com.
    email-beststylesusa.com. 21600 IN MX 110 68.167.129.3.email-beststylesusa.com.

    ;; AUTHORITY SECTION:
    email-beststylesusa.com. 21600 IN NS ns2.meganameservers.com.
    email-beststylesusa.com. 21600 IN NS ns3.meganameservers.com.
    email-beststylesusa.com. 21600 IN NS ns1.meganameservers.com.

    ;; ADDITIONAL SECTION:
    ns1.meganameservers.com. 3971 IN A 216.251.32.100
    ns2.meganameservers.com. 17654 IN A 216.251.32.101
    ns3.meganameservers.com. 17499 IN A 64.29.144.65

    ;; Query time: 44 msec
    ;; SERVER: 64.105.124.154#53(64.105.124.154)
    ;; WHEN: Mon Jun 30 21:49:07 2008
    ;; MSG SIZE rcvd: 220
     
  6. till

    till Super Moderator Staff Member ISPConfig Developer

    One thing first, MX records are not stored in /etc/hosts. They are set in the config files of the BIND name server.

    Please post the output of:

    netstat -tap

    and:

    iptables -L
     
  7. sergio.morales

    sergio.morales New Member

    Netstat and IPtables output

    [root@email-beststylesusa ~]# netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
    tcp 0 0 *:57769 *:* LISTEN 1914/rpc.statd
    tcp 0 0 *:mysql *:* LISTEN 2376/mysqld
    tcp 0 0 *:sunrpc *:* LISTEN 1895/rpcbind
    tcp 0 0 *:81 *:* LISTEN 2735/ispconfig_http
    tcp 0 0 email-beststylesusa.:domain *:* LISTEN 2864/named
    tcp 0 0 localhost.localdomai:domain *:* LISTEN 2864/named
    tcp 0 0 *:ssh *:* LISTEN 2258/sshd
    tcp 0 0 localhost.localdomain:ipp *:* LISTEN 2625/cupsd
    tcp 0 0 *:smtp *:* LISTEN 5452/master
    tcp 0 0 localhost.localdomain:rndc *:* LISTEN 2864/named
    tcp 0 0 localhost.lo:x11-ssh-offset *:* LISTEN 13409/0
    tcp 0 960 email-beststylesusa.com:ssh cpe-98-15-243-177.hvc:55274 ESTABLISHED 13406/sshd: moralse
    tcp 0 0 *:imaps *:* LISTEN 2399/dovecot
    tcp 0 0 *:pop3s *:* LISTEN 2399/dovecot
    tcp 0 0 *:pop3 *:* LISTEN 2399/dovecot
    tcp 0 0 *:imap *:* LISTEN 2399/dovecot
    tcp 0 0 *:http *:* LISTEN 2765/httpd
    tcp 0 0 *:ssh *:* LISTEN 2258/sshd
    tcp 0 0 *:smtp *:* LISTEN 5452/master
    tcp 0 0 localhost6.localdomain:rndc *:* LISTEN 2864/named
    tcp 0 0 localhost6.l:x11-ssh-offset *:* LISTEN 13409/0
    tcp 0 0 *:https *:* LISTEN 2765/httpd
    [root@email-beststylesusa ~]#


    IPTABLES -L

    [root@email-beststylesusa ~]# iptables -L
    Chain INPUT (policy ACCEPT)
    target prot opt source destination
    ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
    ACCEPT icmp -- anywhere anywhere
    ACCEPT all -- anywhere anywhere
    ACCEPT tcp -- anywhere anywhere state NEW tcp dpt:ssh
    REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

    Chain FORWARD (policy ACCEPT)
    target prot opt source destination
    REJECT all -- anywhere anywhere reject-with icmp-host-prohibited

    Chain OUTPUT (policy ACCEPT)
    target prot opt source destination
    [root@email-beststylesusa ~]#
     
  8. falko

    falko Super Moderator Howtoforge Staff

    IS this the correct mail server? Does 68.167.129.3.email-beststylesusa.com point to your server?

    Does it work when you switch off the firewall?
     
  9. sergio.morales

    sergio.morales New Member

    whoa . . . that's wrong

    Hey Falko. Thanks for the help. The record is not right. Is it getting that from my ISP, or from the ISPconfig DNS?

    Thanks!

    sERGE
     
  10. falko

    falko Super Moderator Howtoforge Staff

    It's coming from these two nameservers:

    Code:
    server1:~# dig ns email-beststylesusa.com
    
    ; <<>> DiG 9.3.4 <<>> ns email-beststylesusa.com
    ;; global options:  printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 9090
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 0
    
    ;; QUESTION SECTION:
    ;email-beststylesusa.com.       IN      NS
    
    ;; ANSWER SECTION:
    email-beststylesusa.com. 172800 IN      NS      [B][COLOR="Red"]ns1.covad.net[/COLOR][/B].
    email-beststylesusa.com. 172800 IN      NS      [B][COLOR="Red"]ns2.covad.net[/COLOR][/B].
    
    ;; Query time: 91 msec
    ;; SERVER: 213.191.92.84#53(213.191.92.84)
    ;; WHEN: Thu Jul  3 16:51:00 2008
    ;; MSG SIZE  rcvd: 86
    
    server1:~#
     
  11. sergio.morales

    sergio.morales New Member

    I think I figured out what was happening . ..

    Hey Falko.
    Thanks for the help. A few days ago it struck me that this may have been happening because of my records with my DSL provider, so as a test I removed the MX entries entirely from the ISPconfig's DNS Manager (I unchecked the DNS-MX button).

    After a few hours I came back and checked and it was resolved. I'm going to go to COVAD's site, remove my MX records there and recheck my DNS-MX box on ISPconfig to see if this gets me working.
    I can now send email, but receiving is still busted . . . Please let me know your thoughts.

    sERGE
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Take a look at my previous post. The covad nameservers are authoritative for your domain, so there's no use creating DNS records on your ISPConfig system.
     
  13. sergio.morales

    sergio.morales New Member

    OK, so I started from scratch

    So I went to COVAD's site and whacked my DNS records entirely and I regenerated them. I still can't seem to send email or receive. This is what the DIG outputs look like now . . .
    DIG MX . . . .

    root@email-beststylesusa log]# dig mx email-beststylesusa.com

    ; <<>> DiG 9.5.0rc1 <<>> mx email-beststylesusa.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 7175
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 3, ADDITIONAL: 6

    ;; QUESTION SECTION:
    ;email-beststylesusa.com. IN MX

    ;; ANSWER SECTION:
    email-beststylesusa.com. 16077 IN MX 100 mx2c7.megamailservers.com.
    email-beststylesusa.com. 16077 IN MX 110 mx3c7.megamailservers.com.
    email-beststylesusa.com. 16077 IN MX 10 mx1c7.megamailservers.com.

    ;; AUTHORITY SECTION:
    email-beststylesusa.com. 10681 IN NS ns3.meganameservers.com.
    email-beststylesusa.com. 10681 IN NS ns1.meganameservers.com.
    email-beststylesusa.com. 10681 IN NS ns2.meganameservers.com.

    ;; ADDITIONAL SECTION:
    mx1c7.megamailservers.com. 5766 IN A 69.49.109.34
    mx2c7.megamailservers.com. 10485 IN A 69.49.109.35
    mx3c7.megamailservers.com. 13033 IN A 69.49.109.36
    ns1.meganameservers.com. 3293 IN A 216.251.32.100
    ns2.meganameservers.com. 17008 IN A 216.251.32.101
    ns3.meganameservers.com. 16849 IN A 64.29.144.65

    ;; Query time: 9 msec
    ;; SERVER: 64.105.124.154#53(64.105.124.154)
    ;; WHEN: Sun Jul 6 22:02:09 2008
    ;; MSG SIZE rcvd: 289


    DIG NS . . . . .

    [root@email-beststylesusa log]# dig ns email-beststylesusa.com

    ; <<>> DiG 9.5.0rc1 <<>> ns email-beststylesusa.com
    ;; global options: printcmd
    ;; Got answer:
    ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 12363
    ;; flags: qr rd ra; QUERY: 1, ANSWER: 3, AUTHORITY: 0, ADDITIONAL: 3

    ;; QUESTION SECTION:
    ;email-beststylesusa.com. IN NS

    ;; ANSWER SECTION:
    email-beststylesusa.com. 10503 IN NS ns1.meganameservers.com.
    email-beststylesusa.com. 10503 IN NS ns2.meganameservers.com.
    email-beststylesusa.com. 10503 IN NS ns3.meganameservers.com.

    ;; ADDITIONAL SECTION:
    ns1.meganameservers.com. 3115 IN A 216.251.32.100
    ns2.meganameservers.com. 16830 IN A 216.251.32.101
    ns3.meganameservers.com. 16671 IN A 64.29.144.65

    ;; Query time: 8 msec
    ;; SERVER: 64.105.124.154#53(64.105.124.154)
    ;; WHEN: Sun Jul 6 22:05:07 2008
    ;; MSG SIZE rcvd: 159

    I really don't know where to go from here . . . I'm really stuck and if anyone would be kind enough to walk me thru this I'd REALLY appreciate it. I also turned off ALL DNS and DNS-MX records from IPconfig's side, just as the previous post requested . . .

    Thanks and HELP!
    sERGE
     
  14. falko

    falko Super Moderator Howtoforge Staff

    Did you change the nameservers?
     
  15. sergio.morales

    sergio.morales New Member

    My DNS info is broken I think

    Hey! I went to COVAD's site and brought my DNS records back to their standard. I'm going to guess that is the reason my records look different. Now, I CAN receive email on the account, but only the emails that state that state there are services not running . . . I cannot receive any other emails and sending emails get the error that "relay access is denied"

    This is getting more bizarre by the minute. What I'd ultimately like to do is have my ISPconfig server provide as many of the DNS services as possible, to make me as independent of the COVAD's of the world as possible . . .

    Thanks for the help.
     
  16. till

    till Super Moderator Staff Member ISPConfig Developer

  17. trexen

    trexen Member

    Tell youre ISP ore Domain privider to point to youre ISPConfig server.
    so you can manage youre domains.
     
  18. sergio.morales

    sergio.morales New Member

    That's more than I can handle now . . .

    Hey Till. Thanks for the super quick response. That document you sent the link to involves a bit more hardware than I have, so I can't be as independent as I'd like . . . HOWEVER . . . what I did to clean the slate is deleted my site and client, and made new ones. I made sure NOT to click any of the DNS and DNS-MX boxes, and I went to godaddy and reentered my DNS info. I also went to COVAD and made sure they had my records set up.

    I think I have a few ailments though. For one, I can't seem to send or receive email. I have defined new email users for the site I created, but none work. The only user that seemed to work was the user I made to match one of my sysadmin accounts on the box. I defined a new user and it doesn't work at all. How can I first check to make sure my basics are set up right?
    It doesn't seem the email is working right and I can't figure out why?
    Thanks again!
    sERGE
     
  19. sergio.morales

    sergio.morales New Member

    DNS Hell

    Hey Trexen

    In my DNS records for COVAD, I have everything pointing to my IP address . . . So I have purposely not clicked the DNS and DNS-MX checkboxes in the ISPconfig.

    The issue is that I think there may be something else wrong within ISPconfig . . . My mail isn't working and none of the new mail clients I make work either . . .

    sERGE
     

    Attached Files:

  20. till

    till Super Moderator Staff Member ISPConfig Developer

    Please have a look at the mail log and post the errors that might be listed there.
     

Share This Page