Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Member Silent Ninja's Avatar
    Join Date
    Apr 2006
    Location
    Buenos Aires, Argentina
    Posts
    168

    Default Relay a domain to a second mail server

    First: This is my actual situation...

    An ISP is blocking our webserver ip range on their mailservers, not sure why, and also they refuse to unlock us; anyhow, we still need to send emails to them.

    We've figured out that all the emails going to @ispaddress.com should pass via another cpanel webserver of ours via relay (this one isn't blocked) and thus the mails will be delivered correctly.

    I've seen something about ACL's and relay_hosts or transports, but I haven't been able to find a config that actually works on cPanel and that was easy for me to edit it so that just @ispaddress.com emails get's routed by the another smtp server and all the other mails get's delivered normally.

    Could you help me with this setup ?

  2. #2
    Member Silent Ninja's Avatar
    Join Date
    Apr 2006
    Location
    Buenos Aires, Argentina
    Posts
    168

    Default

    Fixed with this guide:
    Exim with a remote SMTP server - ArchWiki

    Not as simple as it looks but kinda
    On the first editable block on Advanced Exim Editors, add this:
    Code:
    domainlist blocked_me_domains = lsearch;/etc/blockedmedomains
    Obviously you'll have to put all your domains blocked on "/etc/blockedmedomains" (one per line on the file).

    Then add this after the editable box right after the "# Demo Safety Router":
    Code:
    to_myothersmtp:
      driver = manualroute
      domains = +blocked_me_domains
      transport = remote_smtp
      route_list = * your.smtphostname.here
    Obviously editting where it says: "your.smtphostname.here" and allowing to relay on that smtp (you may whitelist yourself to make it faster).

Similar Threads & Tags
Similar threads

  1. Block non local domain relay mail.
    By teerasak in forum E-mail Discussions
    Replies: 1
    Last Post: 01-10-2010, 12:30 AM
  2. user@server mail 550 relay not permitted.
    By 4u123 in forum New User Questions
    Replies: 4
    Last Post: 11-23-2009, 07:24 PM
  3. Why is my mail server an open relay?
    By jez9999 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 07-04-2009, 04:07 AM
  4. Relay mail server configuration
    By pjmignone in forum E-mail Discussions
    Replies: 4
    Last Post: 11-23-2007, 11:04 AM
  5. How do you correctly close an Open Relay? Failed abuse.net mail relay test
    By Vatoloco in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-08-2004, 08:00 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube