Derek Stevenson
2005-Aug-23 07:38 UTC
[Pkg-exim4-users] can''t connect to port 25 from other than localhost
I''ve just installed and configured exim, spamassassin, and cyrus on a clean debian install and have them working together ok, except for one (fairly major!) detail: I can''t seem to have exim handle inbound messages from anything other than localhost. From the same host (10.2.1.111), I can telnet to port 25: 10.2.1.111# telnet localhost 25 Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is ''^]''. 220 localhost.localdomain ESMTP Exim 4.50 Tue, 23 Aug 2005 00:30:17 -0700 However, if I try to telnet from another computer in my local net, I can''t connect: 10.2.1.110# telnet 10.2.1.111 25 Trying 192.168.1.111... telnet: connect to address 192.168.1.111: Connection refused I spent a while digging through iptables to see if the default debian setup comes with certain filter rules that block port 25 connections from the outside, but I don''t think this is the case (again, this is unchanged from the default debian setup): 10.2.1.111# iptables -L Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination So now I''m thinking it''s something in the exim config itself that''s blocking external port 25 connections, but the only things I''ve done to customize the default exim config files is add a couple routers and transports for cyrus and spamassassin, nothing else. Help! Does anyone have any advice on next steps? Thanks, Derek
Marc Haber
2005-Aug-23 08:05 UTC
[Pkg-exim4-users] can''t connect to port 25 from other than localhost
On Tue, Aug 23, 2005 at 12:40:42AM -0700, Derek Stevenson wrote:> So now I''m thinking it''s something in the exim config itself that''s > blocking external port 25 connections, but the only things I''ve done to > customize the default exim config files is add a couple routers and > transports for cyrus and spamassassin, nothing else.This looks like you told exim to listen only on 127.0.0.1 (which could easily be determined using netstat -an). This is controlled by the dc_local_interfaces option in /etc/exim4/update-exim4.conf.conf, empty means "listen on all interfaces". This is at least clearly mentioned in the debconf templates, and the update-exim4.conf manpage has been clarified in SVN in response to your question. 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
Thijs Koetsier | Exception
2005-Aug-23 10:18 UTC
[Pkg-exim4-users] split configuration issues
Hi all, I''m having trouble to exactly understand the way to configure exim4 by split files configuration. By reading the documentation I do have an idea about the separate routers and transport files, which helped me with vacation messages and spamchecks. What I don''t get, is how to set ''normal'' configuration parameters. When I want to set the quota for each user, the Exim4 book tells me to specify this as "quota = 10M". I don''t see how to set this value in the split files, and think it might be preferred to have a router to check an incoming message with the quota and if that leads to problems, to have a transport send it back to the user. For these kind of things I can''t hardly find any documentation; what I find is mostly based on monolithic file. My question is, am I looking at this split configuration in the wrong way? Is it possible to easily embed configuration for the monolithic file in split files (which I thought it was) and do I just don''t get it, or does this work different and if so, is there a place to find some more detailed information? Regards, Thijs
On Tue, Aug 23, 2005 at 12:18:32PM +0200, Thijs Koetsier | Exception wrote:> I''m having trouble to exactly understand the way to configure exim4 by split > files configuration. By reading the documentation I do have an idea about > the separate routers and transport files, which helped me with vacation > messages and spamchecks. > > What I don''t get, is how to set ''normal'' configuration parameters. When I > want to set the quota for each user, the Exim4 book tells me to specify this > as "quota = 10M".In which part of the configuration do you have to set this option (not having the exim book handy by now)? From a quick look in the spec.txt file the quota option is part of the appendfile transport configuration, so - in a split configuration - that option goes into each appendfile transport. It might be a surprise that transport configuration can be found in /etc/exim4/conf.d/transport.> I don''t see how to set this value in the split files, and > think it might be preferred to have a router to check an incoming message > with the quota and if that leads to problems, to have a transport send it > back to the user.I do not quite understand what you mean. I would recommend reading spec.txt. The documentation of the quota-related options in the appendfile transport seems to be quite extensive. Maybe, the FAQ question Q0605 is of help as well. Additionally, the exim wiki gives a link to http://www.alios.org/exim4quota.html which might be of help for you as well. Please note that all this documentation is available to all exim users with direct links from the exim upstream web site. There does not seem to be an easy possibility to have exim reject messages to an over-quota mailbox at SMTP time.> For these kind of things I can''t hardly find any > documentation; what I find is mostly based on monolithic file.The split config is not _that_ different from the monolithic config as you might think. The split config is concatenated together to give a monolithic config for the daemon, so the correspondence of the split config directories and the monolithic file is pretty much 1:1. This is from the update-exim4.conf(8) man page: If dc_use_split_config in /etc/exim4/update-exim4.conf.conf specifies a split configuration, update-exim4.conf processes the /etc/exim4/conf.d subdirectories in the order main, acl, router, transport, retry, rewrite and auth. Within each directory it takes files in lexical sort order by file name. It concatenates all these files and makes the deb- conf replacement described below. Maybe it would be a good idea to read that man page in its entirety.> My question is, am I looking at this split configuration in the wrong way? > Is it possible to easily embed configuration for the monolithic file in > split files (which I thought it was)A monolithic configuration is built from the split files. It''s the same thing, only differently packaged. 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
Thijs Koetsier | Exception
2005-Aug-23 12:17 UTC
[Pkg-exim4-users] split configuration issues
Thanks for the extended information Marc. Your remarks and the docs helped me to set up the quota in the right way and I better understand the way in which the configuration files work. Kind regards, Thijs> -----Oorspronkelijk bericht----- > Van: pkg-exim4-users-bounces@lists.alioth.debian.org > [mailto:pkg-exim4-users-bounces@lists.alioth.debian.org] > Namens Marc Haber > > On Tue, Aug 23, 2005 at 12:18:32PM +0200, Thijs Koetsier | > Exception wrote: > > I''m having trouble to exactly understand the way to > configure exim4 by > > split files configuration. By reading the documentation I > do have an > > idea about the separate routers and transport files, which > helped me > > with vacation messages and spamchecks. > > > > What I don''t get, is how to set ''normal'' configuration parameters. > > When I want to set the quota for each user, the Exim4 book > tells me to > > specify this as "quota = 10M". > > In which part of the configuration do you have to set this > option (not having the exim book handy by now)? From a quick > look in the spec.txt file the quota option is part of the > appendfile transport configuration, so - in a split > configuration - that option goes into each appendfile transport. > > > It might be a surprise that transport configuration can be > found in /etc/exim4/conf.d/transport. > > > I don''t see how to set this value in the split files, and think it > > might be preferred to have a router to check an incoming > message with > > the quota and if that leads to problems, to have a > transport send it > > back to the user. > > I do not quite understand what you mean. > > I would recommend reading spec.txt. The documentation of the > quota-related options in the appendfile transport seems to be > quite extensive. Maybe, the FAQ question Q0605 is of help as well. > Additionally, the exim wiki gives a link to > http://www.alios.org/exim4quota.html which might be of help > for you as well. > > Please note that all this documentation is available to all > exim users with direct links from the exim upstream web site. > > There does not seem to be an easy possibility to have exim > reject messages to an over-quota mailbox at SMTP time. > > > > For these kind of things I can''t hardly find any > documentation; what I > > find is mostly based on monolithic file. > > The split config is not _that_ different from the monolithic > config as you might think. The split config is concatenated > together to give a monolithic config for the daemon, so the > correspondence of the split config directories and the > monolithic file is pretty much 1:1. > > This is from the update-exim4.conf(8) man page: > If dc_use_split_config in > /etc/exim4/update-exim4.conf.conf specifies a > split configuration, update-exim4.conf processes the > /etc/exim4/conf.d > subdirectories in the order main, acl, router, > transport, retry, > rewrite and auth. Within each directory it takes > files in lexical sort > order by file name. It concatenates all these files > and makes the deb- > conf replacement described below. > > Maybe it would be a good idea to read that man page in its entirety. > > > My question is, am I looking at this split configuration in > the wrong way? > > Is it possible to easily embed configuration for the > monolithic file > > in split files (which I thought it was) > > A monolithic configuration is built from the split files. > It''s the same thing, only differently packaged. > > 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 > > _______________________________________________ > Pkg-exim4-users mailing list > Pkg-exim4-users@lists.alioth.debian.org > http://lists.alioth.debian.org/mailman/listinfo/pkg-exim4-users >