Re: Debian wheezy exim4 Refuses All External Mail.
On Fri, 07 Nov 2014 06:31:21 -0600 Martin G. McCormick mar...@server1.shellworld.net wrote: I am more used to sendmail under FreeBSD and I suddenly lost my FreeBSD system on which I receive mail from everywhere so I need to quickly make a wheezy system stop rejecting all incoming non-local messages. The exim4 installation on the system in question is the out-of-the-box installation that came on the wheezy installation CD and every indication is that it is working as it should right now. I want to make it receive all mail and deliver it locally to users on the system which is me. There is rc.local and bogofilter on the system for spam control and sorting of messages to appropriate folders, but right now, this system and another I have access to always reject any connection other than telnetting to port 25 on the local box. What is the simplest and safest change I need to make to open the systems up to external mail? If I can get this system receiving mail normally, the FreeBSD virtual system can wait but time is getting tight and I haven't found the magic command yet. Many thanks. It should work Out Of The Box(TM). If you've made any changes to the configuration, use dpkg-reconfigure exim4-config to return to the original state. Either way, check /etc/exim4/update-exim4.conf.conf, which gets updated by dpkg-reconfigure. The file contains instructions as to how to make changes. It should look quite like this, except for the mailbox option, which I have previously altered to use IMAP: # /etc/exim4/update-exim4.conf.conf # # Edit this file and /etc/mailname by hand and execute update-exim4.conf # yourself or use 'dpkg-reconfigure exim4-config' # # Please note that this is _not_ a dpkg-conffile and that automatic changes # to this file might happen. The code handling this will honor your local # changes, so this is usually fine, but will break local schemes that mess # around with multiple versions of the file. # # update-exim4.conf uses this file to determine variable values to generate # exim configuration macros for the configuration file. # # Most settings found in here do have corresponding questions in the # Debconf configuration, but not all of them. # # This is a Debian specific file dc_eximconfig_configtype='internet' dc_other_hostnames='jretrading.com:jretrading.co.uk' dc_local_interfaces='' dc_readhost='' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='192.168.99.0/24' dc_smarthost='' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='' dc_mailname_in_oh='true' dc_localdelivery='maildir_home' 'other_hostnames' should be the domains you collect for, separated by colons. 'minimaldns' should be true if you don't have a local DNS server, 'relay_nets' should be your local network, or nothing if you're only going to read/send mail from the server itself. 'smarthost' will be empty if you send mail directly, otherwise the SMTP server you use. Most of this is for sending email anyway, not receiving. If the answer is not here in the file, try the network stuff, netstat etc. and try to telnet in from outside, see what message you get. -- Joe -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141107131057.4c026...@jresid.jretrading.com
Re: Debian wheezy exim4 Refuses All External Mail.
Joe writes: much good information not quoted but greatly appreciated etc. and try to telnet in from outside, see what message you get. 2dc martin tmp $telnet debsystem.it.okstate.edu 25 Trying 169.254.5.10... telnet: connect to address 169.254.5.10: Connection refused telnet: Unable to connect to remote host 3dc martin tmp $ Just kidding about the IP numbers, but that's how the session went. -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141107141006.1525322...@server1.shellworld.net
Re: Debian wheezy exim4 Refuses All External Mail.
Joe writes: original state. Either way, check /etc/exim4/update-exim4.conf.conf, which gets updated by dpkg-reconfigure. The file contains instructions as to how to make changes. This has gotten me started on the right direction plus, of course, man update-exim4.conf. The important clause, here is .ifndef DC_eximconfig_configtype DC_eximconfig_configtype=internet .endif This is as opposed to local One other thing is mentioned in the man page that I must do. I run our domain name server and will create an MX record for the dead FreeBSD VM (RIP) so that mail that would have gone to it will go to the Debian box. When you do that, one must make the mailer on the target system aware that it is supposed to receive mail addressed to the system in the MX record. There is dc_other_hostnames for this purpose but it is not a configuration variable as such. If you run update-exim4.conf -oexim4.conf.conf, you don't see the syntax for how to enter this list since it wasn't there to begin with. All the variables are ifthen clauses. Do you just tack this list on at the bottom like dc_other_hostnames deadmouse.okstate.edu or is it more structured? I think that's about all I don't understand for now. In the 13 or 14 years I have been using Linux, this is the deapest I have gotten in to exim. It is certainly different from sendmail but so far, I like it. Anyway, thanks for the help. Martin McCormick -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141107153419.3c25422...@server1.shellworld.net
Re: Debian wheezy exim4 Refuses All External Mail.
On 2014-11-07, Martin G. McCormick mar...@server1.shellworld.net wrote: The exim4 installation on the system in question is the out-of-the-box installation that came on the wheezy installation CD and every indication is that it is working as it should right now. My understanding is that the default setup handles email local to the system only. If you have other needs, I believe the following is the canonical way to go: dpkg-reconfigure exim4-config as root. https://www.debian.org/releases/wheezy/i386/ch08s05.html.en -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/slrnm5pt4u.382.cu...@einstein.electron.org
Re: Debian wheezy exim4 Refuses All External Mail.
On Fri, 07 Nov 2014 09:34:19 -0600 Martin G. McCormick mar...@server1.shellworld.net wrote: Joe writes: original state. Either way, check /etc/exim4/update-exim4.conf.conf, which gets updated by dpkg-reconfigure. The file contains instructions as to how to make changes. This has gotten me started on the right direction plus, of course, man update-exim4.conf. The important clause, here is .ifndef DC_eximconfig_configtype DC_eximconfig_configtype=internet .endif This is as opposed to local Yes, I think that will be the important one. One other thing is mentioned in the man page that I must do. I run our domain name server and will create an MX record for the dead FreeBSD VM (RIP) so that mail that would have gone to it will go to the Debian box. When you do that, one must make the mailer on the target system aware that it is supposed to receive mail addressed to the system in the MX record. There is dc_other_hostnames for this purpose but it is not a configuration variable as such. If you run update-exim4.conf -oexim4.conf.conf, you don't see the syntax for how to enter this list since it wasn't there to begin with. All the variables are ifthen clauses. Do you just tack this list on at the bottom like dc_other_hostnames deadmouse.okstate.edu or is it more structured? You're in the wrong place. First, exim4 can use either one large main configuration file, or it can use many files for individual configuration options, and you were asked to decide which in the original configuration questionnaire. In this case, it doesn't matter which you chose. If you chose one file, it will be exim4.conf.template, otherwise it's the files under conf.d. Either way, that's where you find all the if/then clauses, which are used to merge update-exim4.conf.conf variables into the main file(s). The file you want is update-exim4.conf.conf, and I copied mine almost verbatim. There are no if clauses there. Each line just begins dc_xxx and ends with ='yyy'. Just edit between the quotation marks, save, and run update-exim4.conf. Domain names go in the 'dc_other_hostnames' and if there is more than one, they are separated by colons, with no spaces. Check after the update that /etc/exim4/update-exim4.conf.conf still looks right, similar to mine. Restart exim4 after that, I don't believe that running update-exim4.conf does that. The main configuration file, exim4.conf.template, or the individual files, allow all possible configurations, but in an effort to keep the local user adjustments out of these files, the dozen or so most fundamental configurations can be made easily either by editing update-exim4.conf.conf or answering the questions asked by dpkg-reconfigure exim4-config. If you need to do more complicated things, you do need to pick your way between ifdefs in the main configuration file(s), but that isn't necessary just to get the basic operation right. -- Joe -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org Archive: https://lists.debian.org/20141107165015.27c07...@jresid.jretrading.com