problem mail server in virtual multiserver configuration

Discussion in 'Installation/Configuration' started by smanettone, Jul 10, 2013.

  1. smanettone

    smanettone New Member

    sorry for my English...

    i have completed this tutorial virtual multiserver:
    http://www.howtoforge.com/virtual-multiserver-environment-with-dedicated-web-mysql-email-dns-servers-on-debian-squeeze-with-ispconfig-3

    (but i use proxmox)

    SITUATION

    Physical Server
    ip address: public address
    Webserver
    ip address:192.168.0.1
    Mail Server
    ip address:192.168.0.2
    Ns1
    ip address:192.168.0.3
    Ns2
    ip address:192.168.0.4

    i have configure nat forwarding in physical server
    port 80, 8080, 21 in web server
    port 110, 25 in mail server
    port 53 in ns server

    all work great but the mail server not send mail
    what's the problem?!?!:confused::confused::confused:

    thankyou for reply
     
  2. MaddinXx

    MaddinXx Member

    Try opening these ports on mail server:

    25,110,143,465,585,587,993,995

    You may want to check which port is for what (and if you really need it) - but I guess you should at least open port 587 too.

    Are there any errors in /var/log/mail.err or /var/log/mail.log?
     
  3. smanettone

    smanettone New Member

    Tnx MaddinXx, i have try your instructions but the mail server no work
    when i configure the mail-client (outlook, thundebird, ecc...), pop test ok bust smtp test fail.:mad::mad::mad:

    i have install roundcube on web server and the login work correctly
    i can send (i use php send) but i don't receive

    i can post log or configuration file if you want

    pls help me!!!
     
  4. MaddinXx

    MaddinXx Member

    Can you post output of

    netstat --listening | grep smtp

    and

    netstat --listening | grep submission

    to check if Postfix is running and

    cat /var/log/mail.log | grep err

    as well to see if there are any errors in the log?
     
  5. smanettone

    smanettone New Member

    this is output of netstat --listening | grep smtp:

    root@mail:~# netstat --listening | grep smtp
    tcp 0 0 127.0.0.2:ssmtp *:* LISTEN
    tcp 0 0 localhost.localdo:ssmtp *:* LISTEN
    tcp 0 0 127.0.0.2:smtp *:* LISTEN
    tcp 0 0 localhost.localdom:smtp *:* LISTEN
    tcp6 0 0 localhost:ssmtp [::]:* LISTEN
    tcp6 0 0 localhost:smtp [::]:* LISTEN
    unix 2 [ ACC ] STREAM LISTENING 1246918 private/smtp
    unix 2 [ ACC ] STREAM LISTENING 1246974 private/bsmtp



    this is output netstat --listening | grep submission

    root@mail:~# netstat --listening | grep submission
    tcp 0 0 127.0.0.2:submission *:* LISTEN
    tcp 0 0 localhost.lo:submission *:* LISTEN
    tcp6 0 0 localhost:submission [::]:* LISTEN

    output of cat /var/log/mail.log | grep err:

    Jul 6 17:32:40 mail spamd[1212]: logger: removing stderr method
    Jul 6 17:55:11 mail spamd[1193]: logger: removing stderr method
    Jul 6 18:42:44 mail spamd[1217]: logger: removing stderr method
    Jul 7 07:17:05 mail spamd[1219]: logger: removing stderr method
    Jul 7 07:30:41 mail spamd[1221]: logger: removing stderr method
    Jul 7 07:48:48 mail spamd[487]: logger: removing stderr method
    Jul 7 07:52:47 mail spamd[746]: logger: removing stderr method
    Jul 7 07:58:00 mail spamd[739]: logger: removing stderr method
    Jul 8 18:16:17 mail spamd[740]: logger: removing stderr method
    Jul 9 22:13:32 mail spamd[751]: logger: removing stderr method

    Tnx for Reply
     
    Last edited: Jul 10, 2013
  6. MaddinXx

    MaddinXx Member

    Doesn't this tcp 0 0 127.0.0.2:ssmtp *:* LISTEN mean it's listening on localhost (or 127.0.0.2) only?

    In /etc/postfix/main.cf have you:

    Code:
    [...]
    myorigin = /etc/mailname
    [...]
    myhostname = <your FQDN>
    [...]
    myorigin = /etc/mailname
    [...]
    mydestination = <your FQDN>, localhost, localhost.localdomain
    [...]
    Postfix needs to be restarted afterwards. Not sure if this is correct, but I highly guess there's somewhere a problem with where Postfix is listening...
     
  7. smanettone

    smanettone New Member

    In /etc/postfix/main.cf
    i have only

    myhostname = mail.xxxxxx.it
    and
    mydestination = /etc/postfix/local-host-names

    i haven't myorigin = /etc/mailname
     
  8. smanettone

    smanettone New Member

    i have problem with server mail...
    another solution???
     

Share This Page