The Perfect Server - Ubuntu 12.10 Question

Discussion in 'HOWTO-Related Questions' started by EllisP, Jun 12, 2013.

  1. EllisP

    EllisP New Member

    Hey everyone;

    This is my first time posting on these forums, and I'd like to start of by thanking falko for writing that great how-to on Ubuntu 12.10.

    I've been setting up my clients and email domains, and discovered a problem:

    First off my POP3 Dovecot is working and I can connect to it with telnet, but my SMTP server isn't, if I try to connect to it using telnet it keeps trying to connect untill it times out.
    I was wondering if anyone else had encountered this and could point me in the right direction, I currently can't send any emails (within my own domain).


    Kind regards;
    Ellis Pluym

    Edit: Adding my postconf -n output

     
    Last edited: Jun 12, 2013
  2. monkfish

    monkfish New Member

    Hello EllisP,

    A few ideas to help you track down...

    - Have a check see if postfix is actually running. Do something like "ps ax | grep master" - you should have a process listed there.

    See if its listening on the address you're connecting to - "netstat -A inet -nlp" see if a process "master" for port 25 is listening on either any address (0.0.0.0) or a specified address.

    - Check you're not firewalled out at all?

    - On my ubuntu installation when I configured postfix it automatically specified start on boot. You might like to check thats the case on yours.

    - Where are you telneting from? Is it your local PC, could it be antivirus or similar getting in the way?

    - Maybe do a "service postfix restart" to check its starting correctly.

    - Have a look in the mail log file for errors - something like "cat /var/log/mail.log".

    - you said you followed a Perfect Server guide, suggesting you installed ISPConfig. What happens when you log in there and go to the monitor tab? Does it show any services offline?

    HTH
     
  3. EllisP

    EllisP New Member

    Thanks for the tips monkfish, I'll look into them asap, but I'm currently not in the office, but I'll update here when I can.
     
  4. EllisP

    EllisP New Member

    This is what I got

    1264 ? Ss 0:00 /usr/sbin/amavisd-new (master)
    1803 ? Ss 0:00 php-fpm: master process (/opt/php-5.3.18/etc/php-fpm.conf)
    1816 ? Ss 0:00 php-fpm: master process (/etc/php5/fpm/php-fpm.conf)
    3021 ? Ss 0:00 /usr/lib/postfix/master
    3102 pts/0 S+ 0:00 grep --color=auto master

    /usr/lib/postfix/master process is listed
    tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 3021/master

    My firewall is disabled on my Windows 7 which I'm using to connect to the server and unless Ubuntu comes with a firewall which I've not read anything about in the How To there shouldn't be any other walls in the way.
    I ran the ps ax | grep master when I booted the server and the process was running so I'm guessing that's a yes.
    I'm telnetting from a windows 7 PC in the same network, I also don't have an AV on this PC
    No problems here

    root@ubuntuserver:/home/administrator# service postfix restart
    * Stopping Postfix Mail Transport Agent postfix [ OK ]
    * Starting Postfix Mail Transport Agent postfix [ OK ]

    Well there's quite a few errors here, one seems to be pointing at an SSL error;
    Code:
    Jun 13 18:45:02 ubuntuserver postfix/smtps/smtpd[2593]: connect from localhost.localdomain[127.0.0.1]
    Jun 13 18:45:02 ubuntuserver postfix/smtps/smtpd[2593]: SSL_accept error from localhost.localdomain[127.0.0.1]: lost connection
    Jun 13 18:45:02 ubuntuserver postfix/smtps/smtpd[2593]: lost connection after CONNECT from localhost.localdomain[127.0.0.1]
    Jun 13 18:45:02 ubuntuserver postfix/smtps/smtpd[2593]: disconnect from localhost.localdomain[127.0.0.1]
    Jun 13 18:46:03 ubuntuserver postfix/smtps/smtpd[2556]: SSL_accept error from unknown[192.168.21.20]: lost connection
    Jun 13 18:46:03 ubuntuserver postfix/smtps/smtpd[2556]: lost connection after CONNECT from unknown[192.168.21.20]
    Jun 13 18:46:03 ubuntuserver postfix/smtps/smtpd[2556]: disconnect from unknown[192.168.21.20]
    Jun 13 18:46:16 ubuntuserver postfix/smtps/smtpd[2565]: SSL_accept error from unknown[192.168.21.20]: lost connection
    Jun 13 18:46:16 ubuntuserver postfix/smtps/smtpd[2565]: lost connection after CONNECT from unknown[192.168.21.20]
    Jun 13 18:46:16 ubuntuserver postfix/smtps/smtpd[2565]: disconnect from unknown[192.168.21.20]
    Jun 13 18:46:19 ubuntuserver postfix/smtps/smtpd[2593]: connect from unknown[192.168.21.20]

    http://imgur.com/sLM7eyn

    not working so posting url

    EDIT: I found a post of someone else with this issue and it turns out it wasn't too hard to solve,
    [url]http://www.howtoforge.com/forums/showthread.php?t=61657[/url]
    I can now send emails within my own network!
     
    Last edited: Jun 13, 2013
  5. EllisP

    EllisP New Member

    Thank you monkfish for helping me track down the problem, I've stumbled upon another problem now though, when trying to send emails from my domain, to for example hotmail or gmail; I get an error when I try to send it
    ERROR:
    Message not sent. Server replied:
    Requested action aborted: error in processing
    451 4.3.0 <**********@gmail.com>: Temporary lookup failure

    Any idea what might be the problem?
     

Share This Page