sending mail to another server

Discussion in 'Installation/Configuration' started by mnzava, Feb 6, 2008.

  1. mnzava

    mnzava Member

    Hi everyone,
    I hope you are OK.
    Well, i have a problem with my server. I installed a webserver based on Falkos Perfect Setup cent OS 5.0. I didnt install ISPConfig because i want only one site for this server at the moment.

    Now after Falko's setup i then configured eTicket system. Now, here comes the problem. Once i try to send email to our company mail server (located within our LAN) i get this error.

    Code:
    Feb  4 10:22:52 mserver postfix/smtpd[11877]: NOQUEUE: reject: RCPT from localhost.localdomain[127.0.0.1]: 550 5.1.1 <[email protected]>: Recipient address reje
    cted: User unknown in local recipient table; from=<[email protected]> to=<[email protected]> proto=ESMTP helo=<mserver.msd.or.tz
    I know user emnzava is available at our mailserver and not on this server. Now, how can i set this server so that it can send emails to our mailserver? Or is there a way to add ip address of mailserver to my server?

    If i send email to yahoo or gmail it goes perfectly except only with this mailserver next to my server.

    Another question. How can i set my server to show address with domain like [email protected] without adding server hostname like [email protected]?

    Thanx in advance for your replies.
     
  2. topdog

    topdog Active Member

    It seems like your web server is configured to accept mail for msd.or.tz, so when you send the mail it checks locally for the account which is not there the account is on your mail server which is another machine. you need to remove msd.or.tz from mydestinations
     
  3. topdog

    topdog Active Member

    For the other issue you need this in your main.cf
    Code:
    masquerade_domains msd.or.tz
    
     
  4. mnzava

    mnzava Member

    Thanx topdog,
    Before i read your replies, i tried to change myhostname to mserver.msd.net and mydomain to msd.net and things went ok.

    Now i want to do it your way...that is to remove msd.or.tz in mydestination which will sound logical.

    i have added mydestination = $myhostname, localhost and things seems to be ok.

    Thank you once again
     

Share This Page