multiple domains with postfix on debian etch

Discussion in 'HOWTO-Related Questions' started by m61, Oct 26, 2007.

  1. m61

    m61 New Member

    first off, followed the 'perfect setup - debian sarge' and it works awesome...no problems...

    but, i have 2 other domains hosted on this server, and i want to be able to send email FROM thos domains [receiving is ok]..

    when i try to send, i get errors
    mail.log
    Code:
    Oct 25 16:17:12 www1 postfix/smtpd[1282]: warning: xx.xx.xxx.xxx: address not listed for hostname my_host_name_from_ISP.ext
    Oct 25 16:17:12 www1 postfix/smtpd[1282]: connect from unknown[xx.xx.xxx.xxx]
    Oct 25 16:17:12 www1 postfix/smtpd[1282]: setting up TLS connection from unknown[xx.xx.xxx.xxx]
    Oct 25 16:17:13 www1 postfix/smtpd[1282]: TLS connection established from unknown[xx.xx.xxx.xxx]: TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)
    Oct 25 16:17:13 www1 postfix/smtpd[1282]: disconnect from unknown[xx.xx.xxx.xxx]
    
    and thunderbird spits out:
    Code:
    Sending of message failed.
    The message could not be sent because connecting to SMTP server domain2.com failed.  The server may be unavailable or is refusing SMTP connections.  Please verify that your SMTP server setting is correct and try again, or else contact your network administrator.
    
    so it's looking like my smtp server doesn't understand what domain2.com [and domain3.com] are, but domain1.com work just fine, anyone know how i can get domain2.com and domain3.com to play nice with the smtp server?

    note: hostnames, ips and domains were changed on purpose
     
  2. falko

    falko Super Moderator Howtoforge Staff

    What's the output of
    Code:
    netstat -tap
    ?
    Does domain2.com point to the correct server?
     
  3. m61

    m61 New Member

    Code:
    # netstat -tap
    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name   
    tcp        0      0 *:cvspserver            *:*                     LISTEN     2607/inetd          
    tcp        0      0 localhost.localdo:10024 *:*                     LISTEN     2222/amavisd (maste 
    tcp        0      0 localhost.localdo:10025 *:*                     LISTEN     2312/master         
    tcp        0      0 *:mysql                 *:*                     LISTEN     15393/mysqld        
    tcp        0      0 localhost.localdo:spamd *:*                     LISTEN     15693/spamd.pid     
    tcp        0      0 *:sunrpc                *:*                     LISTEN     1923/portmap        
    tcp        0      0 *:webmin                *:*                     LISTEN     3192/perl           
    tcp        0      0 *:auth                  *:*                     LISTEN     2607/inetd          
    tcp        0      0 domain1.c:domain *:*                     LISTEN     15282/named         
    tcp        0      0 localhost.locald:domain *:*                     LISTEN     15282/named         
    tcp        0      0 *:ftp                   *:*                     LISTEN     14570/proftpd: (acc 
    tcp        0      0 *:munin                 *:*                     LISTEN     2895/munin-node     
    tcp        0      0 *:smtp                  *:*                     LISTEN     2312/master         
    tcp        0      0 localhost.localdoma:953 *:*                     LISTEN     15282/named         
    tcp        0      0 *:57467                 *:*                     LISTEN     2768/rpc.statd      
    tcp        0      0 *:2812                  *:*                     LISTEN     3097/monit          
    tcp        0      0 localhost.localdom:3551 *:*                     LISTEN     2797/apcupsd        
    tcp        0      0 localhost.localdo:43946 localhost.localdo:mysql TIME_WAIT  -                   
    tcp        0      0 localhost.localdom:smtp localhost.localdo:48706 TIME_WAIT  -                   
    tcp        0      0 localhost.localdoma:ftp localhost.localdo:47107 TIME_WAIT  -                   
    tcp6       0      0 *:imaps                 *:*                     LISTEN     15642/couriertcpd   
    tcp6       0      0 *:pop3s                 *:*                     LISTEN     15591/couriertcpd   
    tcp6       0      0 *:pop3                  *:*                     LISTEN     2567/couriertcpd    
    tcp6       0      0 *:imap2                 *:*                     LISTEN     2550/couriertcpd    
    tcp6       0      0 *:www                   *:*                     LISTEN     19727/apache2       
    tcp6       0      0 *:domain                *:*                     LISTEN     15282/named         
    tcp6       0      0 *:ssh                   *:*                     LISTEN     15741/sshd          
    tcp6       0      0 *:smtp                  *:*                     LISTEN     2312/master         
    tcp6       0      0 ip6-localhost:953       *:*                     LISTEN     15282/named         
    tcp6       0      0 *:https                 *:*                     LISTEN     19727/apache2
    and yes, all the domains work [as each website works], it's just the email that doesn't work
     
  4. falko

    falko Super Moderator Howtoforge Staff

    Does it work if you use your server's IP address (instead of domain2.com) in your Thunderbird settings?
     

Share This Page