uisiscom

Member
Jan 15, 2008
10
0
51
Unable to configure EXIM to send an outbound SMTP relay to a remote mail server. Can someone provide assistance on how to configure EXIM in WHM to send outbound mail to a remote mail server?

The failed configuration settings as follows:



Code:
login:
  driver = plaintext
  public_name = LOGIN
  server_prompts = "userID:: : userpassword::"
  server_set_id = $1
  server_condition = "${if pam{$1:$2}{1}{0}}"


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

remote_smtp_over_ssh:

driver = smtp

port = 2525

hosts_require_auth = outbound.mailhop.org

+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

send_to_gateway:

driver = manualroute

domains = !+local_domains

transport = remote_smtp

route_list = * outbound.mailhop.org


+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++


send_to_smart_host:
driver = manualroute
route_list = !+local_domains outbound.mailhop.org
transport = remote_smtp

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
See example of EXIM script below:


internal_routing:
  driver = dnslookup
  domains = +all_local_domains
  transport = smtp_inbound
  no_more

new_mailbox:
  driver = redirect
  domains = le.ac.uk:domain.ac.uk
  data = ${lookup ... in new directory...

pause_mail:
  driver = redirect
  domains = le.ac.uk:domain.ac.uk
  condition = PAUSE_RCPT
  data = :defer:
  allow_defer
  no_verify
  no_more

find_mailbox:
  driver = redirect
  domains = le.ac.uk:domain.ac.uk
  data = ${lookup ...
 
Last edited by a moderator:

uisiscom

Member
Jan 15, 2008
10
0
51
The port number is found in EXIM under remote_smtp_over_ssh:

driver = smtp

port = 2525

hosts_require_auth = outbound.mailhop.org
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
To clarify, per your last post, is the issue now resolved?

Thank you.
 

uisiscom

Member
Jan 15, 2008
10
0
51
Error message from syntax check reads:

2014-04-12 23:20:24 Exim configuration error:
two server authenticators (courier_plain and plain) have the same public name (PLAIN)
 
Last edited:

uisiscom

Member
Jan 15, 2008
10
0
51
Amended authenticators section in the exim.conf::


plain:
driver = plaintext
public_name = PLAIN
server_prompts = :
server_set_id = $2
server_condition = "${if pam{$2:$3}{1}{0}}"

login:
driver = plaintext
public_name = LOGIN
server_prompts = "userID:: : password::"
server_set_id = $1
server_condition = "${if pam{$1:$2}{1}{0}}"
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Could you elaborate if you are still experiencing an issue, and if so, what error message you receive? When you post that you have modified your settings, we can not be sure if that means you have resolved the issue.

Thank you.
 

uisiscom

Member
Jan 15, 2008
10
0
51
Thank answer is still not resolved. What EXIM authenticators block should we use to login to a remote SMTP site: outbound.mailhop.org

login:
driver = plaintext
public_name = LOGIN
server_prompts = "userID:: : password::"
server_set_id = $1
server_condition = "${if pam{$1:$2}{1}{0}}"
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
You may need to consult with a system administrator or post to the Exim mailing list if the information in the thread referenced here is not helpful. Keep in mind that assistance with custom ACL rules falls outside the scope of cPanel support. So, while we can try to direct you to the best resource possible, we can't always provide you with the exact custom rules to implement.

Thank you.
 

uisiscom

Member
Jan 15, 2008
10
0
51
Can we use nano/pico to make custom ACL changes?

EXIM Message Board:

No they don't. You didn't show us the authenticator named "courier_plain", which has the public_name "PLAIN" - like
the error message said.

Perhaps you're not looking at the actual configuration file
that exim has been told to use?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
The following file is used for local Exim customizations via the command line:

Code:
/etc/exim.conf.local
Thank you.