Bob Johannessen
2005-May-05 14:06 UTC
[Pkg-exim4-users] Can not send mail to SMTP port 2525
PRAN Boonrasri wrote:> 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,daemon_smtp_ports = 2525 Bob
Nigel Metheringham
2005-May-05 14:08 UTC
[Pkg-exim4-users] Can not send mail to SMTP port 2525
On Fri, 2005-05-06 at 02:57 +0700, PRAN Boonrasri wrote:> I am having difficulties to setup my MTA to listen to the port 2525 > instead of 25.> begin transports > > remote_smtp: > driver = smtp > port = 2525That sends to port 2525 See http://www.exim.org/exim-html-4.50/doc/html/spec_14.html#IX1130 Nigel. -- [ Nigel Metheringham Nigel.Metheringham@InTechnology.co.uk ] [ - Comments in this message are my own and not ITO opinion/policy - ]
Marc Haber
2005-May-05 14:58 UTC
[Pkg-exim4-users] Re: Can not send mail to SMTP port 2525
On Fri, May 06, 2005 at 02:57:22AM +0700, PRAN Boonrasri wrote:> To: pkg-exim4-users@lists.alioth.debian.org, > ametzler@downhill.at.eu.org, mh+pkg-exim4-users@zugschlus.deWhy the Cc:? Are you afraid that we don''t read our mailing list?> Subject: Can not send mail to SMTP port 2525 > > I am having difficulties to setup my MTA to listen to the port 2525 > instead of 25.Sending and listening are two different things.> I have set the transport section to send mail to server on port 2525 but > seem to be I setup in the wrong please.> 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)That one shows that your daemon listens on Port 25. If you want it to listen on a different port, setup /etc/default/exim4 to listen on that other port. You need the -oX option, and to give exim the path to the pidfile then, otherwise the init script will explode in your face. Your config looks fine for sending to Port 2525. I don''t get why you chose to ditch the entire automatic configuration just to change the target port, but that''s of course your prerogative. Since you''re consistently mixing up mail transmission and mail reception, I''d like to suggest to either think more to get clear about what you want, or to describe your goals more clearly. Greetings Marc -- ----------------------------------------------------------------------------- Marc Haber | "I don''t trust Computers. They | Mailadresse im Header Mannheim, Germany | lose things." Winona Ryder | Fon: *49 621 72739834 Nordisch by Nature | How to make an American Quilt | Fax: *49 621 72739835
PRAN Boonrasri
2005-May-05 19:57 UTC
[Pkg-exim4-users] Can not send mail to SMTP port 2525
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