The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Receiving mail, scanning and forwaring it

Discussion in 'E-mail Discussions' started by Parcye, Apr 4, 2005.

  1. Parcye

    Parcye Well-Known Member

    Joined:
    May 19, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Eindhoven
    Hi all,

    A client has a request to receive mail on his own Lotus Domino server. The trouble is that he does not have the option of receiving on port 25. This means we can not do a simple MX change.

    I have been looking and reading around but it is driving me insane. What do I need to do to be able to forward mail that my server receives (and scannes) to his server?

    Smarthost?
    Mail relay?

    His server is listening on port 26 so I do need to send, simply running Exim on port 26 is not enough.

    Could somebody please assist?

    Kind regards,

    Colin
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Colin,

    You should be able to do it using a smarthost, but with a little more work:

    In the WHM > Exim Configuration Editor > Advanced Mode >

    Add the following into the ROUTERS CONFIGURATION:

    Code:
    smart_route:
    driver = manualroute
    route_list = domain.com remote.smtpserver.com
    transport = remote_smtp_smart
    
    Where domain.com is the domain to manually route and remote.smtpserver.com is their SMTP server. Then scroll down to the TRANSPORTS CONFIGURATION and add:

    Code:
    remote_smtp_smart:
    driver = smtp
    multi_domain = false
    port = 26
    
    Change the port if it's something else.
     
  3. northtrex

    northtrex Active Member

    Joined:
    Feb 26, 2005
    Messages:
    30
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    Does this failure happened for all of your customers ? If not, you should ask him to contact his Internet Service Provider because some are blocking port 25. It happened a lot of time for us.

    Hope it will help.

    http://northtrex.com
     
  4. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Erm, no, that has nothing at all to do with what's being discussed on this thread, the request was for a mechanism to deliver SMTP traffic on a non-standard port. It would be highly unlikely that any ISP would make an exception for a single customer, if that is the reason why.
     
  5. Parcye

    Parcye Well-Known Member

    Joined:
    May 19, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Eindhoven
    chripy, I have added the smarthost and it seems te work. Atleats, that was what I thought.

    Today the client told me they had still not got any mail.

    I am wondering how I can find out what is going wrong. I can connect to the clients server on port 26 on the given IP.

    How can I see what is happening to the mail?

    Could it be that I am missing vandelaar.info in localdomains?

    Thanks in advance.

    Colin
     
    #5 Parcye, Apr 7, 2005
    Last edited: Apr 7, 2005
  6. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Hi Colin,

    You need t monitor the exim_mainlog as an email goes through to see what happens:

    tail -f /var/log/exim_mainlog
     
  7. Parcye

    Parcye Well-Known Member

    Joined:
    May 19, 2004
    Messages:
    56
    Likes Received:
    0
    Trophy Points:
    6
    Location:
    Eindhoven
    Fixed :) Thank you! People where giving me wrong messages and telling me that it was wrong when the Domino server was setup wrong.
     
  8. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    Excellent! :)
     
  9. BrooksBridges

    BrooksBridges Well-Known Member

    Joined:
    Sep 2, 2004
    Messages:
    50
    Likes Received:
    0
    Trophy Points:
    6
    Chirpy,

    how would this work if the destination server is an ip address instead of domain?

    for example, you used "remote.smtpserver.com" as the destination server, but my destination machine is on a private netblock via VPN.

    another question, will this spool emails if the destination server is down for some reason?

    thanks in advance for your wisdom ;)
     
  10. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    It's fine if the destination is an IP address. In a way it's better as it means exim doesn't have to do an additional DNS lookup.

    Emails are indeed queued if the destination server is down.
     
Loading...

Share This Page