Friday, May 24, 2013

exim4 add'l ports

and we all go oh wah oh wah ooooh wah.
i want my nice ubuntu box with exim4 to listen on other freaking ports to get around firewall rules.  but i am that cool.  or tired.
my ip address is

since i'm using the whole debconf thing:

go into /etc/exim4/update-exim4.conf.conf


see that colon?  that goes between ip addresses you are interested on listening on.  
see that octet and then period number?  yeah.  that's the port number you want to listen on.
now.  this is way different than the smarthost port to send to.  the smarthost gets ::port.

# update-exim4.conf

maybe a little
# /etc/init.d/exim4 restart

vid: /var/log/exim4/mainlog:
2013-05-24 11:33:30 exim 4.69 daemon started: pid=24362, -q30m, listening for SMTP on []:25 []:8080 []:25

what does lsof say?

exim4     24362 Debian-exim    3u  IPv4 3386590       TCP localhost:25 (LISTEN)
exim4     24362 Debian-exim    4u  IPv4 3386591       TCP evil:8080 (LISTEN)
exim4     24362 Debian-exim    5u  IPv4 3386592       TCP evil:25 (LISTEN)
alright. time to go back to sleep.
Post a Comment