[Pkg-exim4-users] Can not send mail to SMTP port 2525
PRAN Boonrasri
pran@controlthai.com
Fri, 06 May 2005 02:57:22 +0700
Dear All,
I am having difficulties to setup my MTA to listen to the port 2525
instead of 25. My configuration file is in /etc/exim4/exim4.conf, the
reason that I am not using standard template
(/etc/exim4/exim4.conf.template) to configure it is due to the
difficulties to understand the whole buch of parameter in that file.
t
I have set the transport section to send mail to server on port 2525 but
seem to be I setup in the wrong please. Please tell me where/how I
should setup this parameter.
boonrapr:~# /etc/init.d/exim4 start
Starting MTA: exim4.
2005-05-06 02:41:04 exim 4.50 daemon started: pid=5274, -q30m, listening
for SMTP on port 25 (IPv6 and IPv4)
to make sure my configuration file was taken
boonrapr:~# exim4 -bV
Exim version 4.50 #1 built 02-Mar-2005 07:41:23
...
...
Configuration file is /etc/exim4/exim4.conf
To make sure that I can reach smarthost
boonrapr:~# exim4 -bt pran@controlthai.com
pran@controlthai.com
router = smart_route, transport = remote_smtp
host mail6.thaiwebpro.com [216.157.145.26]
Below is my /etc/exim4/exim4.conf
domainlist local_domains = @
domainlist relay_to_domains =
hostlist relay_from_hosts = 127.0.0.1
acl_smtp_rcpt = acl_check_rcpt
qualify_domain = controlthai.com
never_users = root
rfc1413_hosts = *
rfc1413_query_timeout = 30s
ignore_bounce_errors_after = 2d
timeout_frozen_after = 7d
begin acl
acl_check_rcpt:
accept hosts = :
deny message = Restricted characters in address
domains = +local_domains
local_parts = ^[.] : ^.*[@%!/|]
deny message = Restricted characters in address
domains = !+local_domains
local_parts = ^[./|] : ^.*[@%!] : ^.*/\\.\\./
accept local_parts = postmaster
domains = +local_domains
require verify = sender
accept domains = +local_domains
endpass
verify = recipient
accept domains = +relay_to_domains
endpass
verify = recipient
accept hosts = +relay_from_hosts
deny message = relay not permitted
begin routers
smart_route:
driver = manualroute
transport = remote_smtp
domains = ! +local_domains
route_list = * mail.controlthai.com
system_aliases:
driver = redirect
allow_fail
allow_defer
data = ${lookup{$local_part}lsearch{/etc/aliases}}
file_transport = address_file
pipe_transport = address_pipe
userforward:
driver = redirect
check_local_user
file = $home/.forward
no_verify
no_expn
check_ancestor
file_transport = address_file
pipe_transport = address_pipe
reply_transport = address_reply
localuser:
driver = accept
check_local_user
group = Debian-exim
transport = local_delivery
cannot_route_message = Unknown user
begin transports
remote_smtp:
driver = smtp
port = 2525
local_delivery:
driver = appendfile
file = /var/mail/$local_part
delivery_date_add
envelope_to_add
return_path_add
address_pipe:
driver = pipe
return_output
address_file:
driver = appendfile
delivery_date_add
envelope_to_add
return_path_add
address_reply:
driver = autoreply
begin retry
* * F,2h,15m; G,16h,1h,1.5; F,4d,6h
begin rewrite
begin authenticators
THANKS
PRAN