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 10.6.6.6

since i'm using the whole debconf thing:

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

dc_local_interfaces='127.0.0.1:10.6.6.6.8080:10.6.6.6.25'

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.
yeah.

issue:
# 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 [127.0.0.1]:25 [10.6.6.6]:8080 [10.6.6.6]: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.

No comments: