Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 443783
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T21:12:19+00:00 2026-05-12T21:12:19+00:00

I am trying to use exim4 on debian to relay mail, nothing more. I

  • 0

I am trying to use exim4 on debian to relay mail, nothing more. I have a stage mail server and a production mail server (both written custom in python to do weird stuff). I also have all these running on a single linode host.

production mail is on port 2500, stage mail is running on port 2501. I’d like exim to relay mail based on the target domain to these nonstandard ports. I can easily get it to recognize the domain, but I can’t seem to find any info on how to add port information to the configuration.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T21:12:19+00:00Added an answer on May 12, 2026 at 9:12 pm

    You should create 2 routers and 2 transports, below configuration could work.

    domain_list my_relay_2500 = example1.com:example2.com
    domain_list my_relay_2501 = example3.com:example4.com
    
    my_relay_2500_router:
     driver = manualroute
     domains = +my_relay_2500
     transport = my_remote_smtp_2500
     route_data = ${lookup{$domain}lsearch{/etc/exim/remote_relay.txt}}
     no_more
    
    # after `begin transports`
    my_remote_smtp_2500:
      driver: smtp
      port: 2500
    
    my_remote_smtp_2501:
      driver: smtp
      port: 2501
    

    File /etc/exim/remote_relay.txt

    example1.com: 10.0.0.3   my_remote_smtp_2500
    example2.com: 10.0.0.3   my_remote_smtp_2500
    example3.com: 10.0.0.3   my_remote_smtp_2501
    example4.com: 10.0.0.3   my_remote_smtp_2501
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying use gem tire to search in my application. I have tables
I'm trying use self-signed certificate (c#): X509Certificate2 cert = new X509Certificate2( Server.MapPath(~/App_Data/myhost.pfx), pass); on
Hi I'm trying use a datepicker on a field I have. I'm trying to
Trying to use Powershell to script the removal of specific custom errors from an
I have been trying use the edit_post_link() function to contain an image. All of
trying to use the beforeSave hook with some server side validation and throwing a
I'm trying use Places API from Google frmo a node.js server This is the
I'm trying use eco for client-side templating. I have multiple .eco templates that I'd
I am trying use the new server side plug-in feature for TFS 2010. (I
I have a regex that I'm trying use to validate against strings. Trying to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.