Sending email from ISP Config

Discussion in 'Installation/Configuration' started by mnzava, Nov 22, 2007.

  1. mnzava

    mnzava New Member

    Hi everyone,

    I managed to set up ISPConfig per instruction on HOWTOS. At the end i installed roundcube WEBMAIL. Unfortunately i can send emails to outside mail account (eg. Yahoo, gmail, Hotmail) but i cant reply from those outside mail account. On top of that, in my company we have a mail server built on redhat and a windows domain controler server. But i cant send or receive mails to my local mail server in the company. What could be the problem.

    I didn't put any public IP but it manage to send mails to yahoo etc. What i want is to be able to send and receive mails from my local mail server from the company. That means using local ip address.

    Another thing. i failed to add my ispconfig server to domain. Every time i try it keep telling me CANNOT JOIN AS STAND ALONE MACHINE. This gives me problems in name resolution unless i add server name and ip in the hosts file in my desktop computer.

    Here is the mail error msg

    HTML:
    The original message was received at Thu, 22 Nov 2007 18:12:20 +0300 from admispconfig@localhost ----- The following addresses had permanent fatal errors ----- [email protected]  (reason: 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table) (expanded from: [email protected]) ----- Transcript of session follows ----- ... while talking to [127.0.0.1]:
    |||DATA
    
    <<< 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table 550 5.1.1 [email protected].. User unknown <<< 554 5.5.1 Error: no valid recipients
    
    Reporting-MTA: dns; wserver.moi.or.zt Arrival-Date: Thu, 22 Nov 2007 18:12:20 +0300 Final-Recipient: RFC822; [email protected] Action: failed Status: 5.1.1 Remote-MTA: DNS; [127.0.0.1] Diagnostic-Code: SMTP; 550 5.1.1 <[email protected]>: Recipient address rejected: User unknown in local recipient table Last-Attempt-Date: Thu, 22 Nov 2007 18:12:21 +0300

    Any help?
    Thanx in advance.
    Mnzava
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

  3. mnzava

    mnzava New Member

    I did what you suggested but still i am facing the same problem.

    Also, why am i failing to send mail to my company mail server while we have it within my LAN?
     
  4. falko

    falko Super Moderator ISPConfig Developer

    Do you see that email address in /etc/postfix/virtusertable?
     
  5. mnzava

    mnzava New Member

    Yes i see my address in /etc/postfix/virtusertable
     
  6. falko

    falko Super Moderator ISPConfig Developer

    Can you post the contents of /etc/postfix/virtusertable and /etc/postfix/local-host-names?
     
  7. mnzava

    mnzava New Member

    Hi falko,

    Here is my /etc/postfix/local-host-names

    ###################################
    #
    # ISPConfig local-host-names Configuration File
    # Version 1.0
    #
    ###################################
    localhost
    wserver.msd.or.tz
    localhost.wserver.msd.or.tz
    localhost.msd.or.tz
    localhost.localdomain
    web.msd.net
    msd.net
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####

    and here is my /etc/postfix/virtusertable

    ###################################
    #
    # ISPConfig virtusertable Configuration File
    # Version 1.0
    #
    ###################################
    [email protected] test
    [email protected] test
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####


    Here is the log after i try to send mail to other local server and gmail

    Code:
    Dec 10 12:03:08 wserver postfix/smtpd[5359]: 55E3160D25: client=localhost.localdomain[127.0.0.1]
    Dec 10 12:03:08 wserver postfix/cleanup[5362]: 55E3160D25: message-id=<c047cb9fc4e9d726d6b5b477f1788f92@localhost>
    Dec 10 12:03:08 wserver postfix/qmgr[4700]: 55E3160D25: from=<[email protected]>, size=877, nrcpt=2 (queue active)
    Dec 10 12:03:08 wserver postfix/smtp[5364]: connect to msd.or.tz[192.168.0.6]: Connection refused (port 25)
    Dec 10 12:03:08 wserver sendmail[5356]: lBA935ZW005356: to=[email protected],[email protected], ctladdr=[email protected] (101/101), delay=00:00:03, xdelay=00:00:01, mailer=relay, pri=60356, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (Ok: queued as 55E3160D25)
    Dec 10 12:03:08 wserver postfix/smtp[5364]: connect to msd.or.tz[10.2.3.3]: Connection refused (port 25)
    Dec 10 12:03:08 wserver postfix/smtp[5364]: connect to msd.or.tz[10.2.3.6]: Connection refused (port 25)
    Dec 10 12:03:08 wserver postfix/smtp[5364]: connect to msd.or.tz[192.168.0.3]: Connection refused (port 25)
    Dec 10 12:03:08 wserver postfix/smtpd[5359]: disconnect from localhost.localdomain[127.0.0.1]
    Dec 10 12:03:08 wserver postfix/smtp[5364]: 55E3160D25: to=<[email protected]>, relay=none, delay=0.27, delays=0.12/0.14/0.01/0, dsn=4.4.1, status=deferred (connect to msd.or.tz[192.168.0.3]: Connection refused)
    Dec 10 12:03:08 wserver dovecot: IMAP(test): Disconnected: Logged out
    Dec 10 12:03:09 wserver dovecot: imap-login: Login: user=<test>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
    Dec 10 12:03:10 wserver dovecot: IMAP(test): Disconnected: Logged out
    Dec 10 12:03:11 wserver dovecot: imap-login: Login: user=<test>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
    Dec 10 12:03:11 wserver dovecot: IMAP(test): Disconnected: Logged out
    Dec 10 12:03:17 wserver postfix/smtp[5363]: 55E3160D25: to=<[email protected]>, relay=gmail-smtp-in.l.google.com[216.239.59.27]:25, delay=9.2, delays=0.12/0.14/4.7/4.3, dsn=2.0.0, status=sent (250 2.0.0 OK 1197277396 w26si1179325gvc)
    Dec 10 12:04:11 wserver dovecot: imap-login: Login: user=<test>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
    Dec 10 12:04:11 wserver dovecot: IMAP(test): Disconnected: Logged out
    Sorry for taking some time to reply. Since that day i tried to setup the site from time to time without success.


    Regards,
    Mnzava
     
  8. falko

    falko Super Moderator ISPConfig Developer

  9. mnzava

    mnzava New Member

    Dear Falko,
    You dont see [email protected] and the domain moi.or.zt because i deleted it and try to create msd.or.tz but still i am facing the same problem like i used to face in moi.or.zt.

    I dropped moi.or.tz and try to built something different and see what will happen and i ended up into the same problem.

    If i can manage to send email even from my other mail server(configured in fedora) located within my network, i'll be able to finish the rest.

    Thats why i've attached the log file for you to see the error messages. The IP's 10.2.3.3 or 192.168.0.3 is my domain AD(windows 2003 server) from which i see in the logs connection refused.

    I even think may be it is resolution issue with windows domain that lead to this problem. Because at the moment my ISPConfig server fail to resolve name s with domain.

    I will recreate domain moi.or.zt and give you feedback.

    Thanx once again
     
  10. mnzava

    mnzava New Member

    Hi Falko,
    How are you. I did create the site as you suggested. Here is the files you asked about.


    Here is my /etc/postfix/virtusertable
    Code:
    ###################################
    #
    # ISPConfig virtusertable Configuration File
    #         Version 1.0
    #
    ###################################
    [email protected]    emnzava
    [email protected]    emnzava
    [email protected]    test
    [email protected]    test
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    and here is /etc/postfix/local-host-names
    Code:
    ###################################
    #
    # ISPConfig local-host-names Configuration File
    #         Version 1.0
    #
    ###################################
    localhost
    wserver.msd.or.tz
    localhost.wserver.msd.or.tz
    localhost.msd.or.tz
    localhost.localdomain
    www.moi.or.zt
    web.msd.net
    msd.net
    moi.or.zt
    #### MAKE MANUAL ENTRIES BELOW THIS LINE! ####
    When i try to send email to my other server located within the network I see this information in the log file.

    Code:
    Dec 12 11:07:39 wserver postfix/smtp[16524]: connect to msd.or.tz[10.2.3.6]: Connection refused (port 25)
    Dec 12 11:07:39 wserver postfix/smtp[16524]: connect to msd.or.tz[192.168.0.3]: Connection refused (port 25)
    Dec 12 11:07:39 wserver postfix/smtp[16524]: connect to msd.or.tz[192.168.0.6]: Connection refused (port 25)
    Dec 12 11:07:40 wserver postfix/smtpd[16520]: disconnect from localhost.localdomain[127.0.0.1]
    Dec 12 11:07:40 wserver postfix/smtp[16524]: CDEA060D29: to=<[email protected]>, relay=none, delay=0.2, delays=0.12/0.07/0.01/0, dsn=4.4.1, status=deferred (connect to msd.or.tz[192.168.0.6]: Connection refused)
    Dec 12 11:07:40 wserver dovecot: IMAP(emnzava): Disconnected: Logged out
    Dec 12 11:07:41 wserver dovecot: imap-login: Login: user=<emnzava>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
    Dec 12 11:07:41 wserver dovecot: IMAP(emnzava): Disconnected: Logged out
    Dec 12 11:07:42 wserver dovecot: imap-login: Login: user=<emnzava>, method=PLAIN, rip=::ffff:127.0.0.1, lip=::ffff:127.0.0.1, secured
    Dec 12 11:07:42 wserver dovecot: IMAP(emnzava): Disconnected: Logged out
    Thank you in advance for your valuable help.
    Regards,
    Mnzava
     
  11. till

    till Super Moderator Staff Member ISPConfig Developer

    Please post the output of the command:

    ifconfig
     
  12. mnzava

    mnzava New Member

    Hello Till,

    here is the output of command ifconfig

    Code:
    eth0      Link encap:Ethernet  HWaddr 00:08:C7:0D:6E:97  
              inet addr:192.168.0.20  Bcast:192.168.0.255  Mask:255.255.255.0
              inet6 addr: fe80::208:c7ff:fe0d:6e97/64 Scope:Link
              UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
              RX packets:408493 errors:0 dropped:0 overruns:0 frame:0
              TX packets:27620 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:1000 
              RX bytes:32403768 (30.9 MiB)  TX bytes:10903985 (10.3 MiB)
              Interrupt:161 Base address:0x6400 
    
    lo        Link encap:Local Loopback  
              inet addr:127.0.0.1  Mask:255.0.0.0
              inet6 addr: ::1/128 Scope:Host
              UP LOOPBACK RUNNING  MTU:16436  Metric:1
              RX packets:34299 errors:0 dropped:0 overruns:0 frame:0
              TX packets:34299 errors:0 dropped:0 overruns:0 carrier:0
              collisions:0 txqueuelen:0 
              RX bytes:2767465 (2.6 MiB)  TX bytes:2767465 (2.6 MiB)
     
  13. falko

    falko Super Moderator ISPConfig Developer

    Why does msd.or.tz resolve to three different IP addresses?
     
  14. mnzava

    mnzava New Member

    We have two Domain servers, one is primary and another is secondary.

    and we use two ip schemes. Nowdays we use 192.168... instead of 10.2.3.... but you see it there because it is not yet removed from server.
     
  15. mnzava

    mnzava New Member

    Dear All,
    I have found the solution. It was public ip address of the other mail server. I didnt add in resolv.conf file, but once i did everything went fine.

    Thank you all for your help.
    regards,
    Mnzava
     

Share This Page