On Mon, Jul 28, 2003 at 09:25:33AM +0200, Guenter Brast wrote:
> Hi,
>
> when I am not using the ADDRESS tag in etc/esmtpd, courier-ESMTPonly listens
> to
> ip 127.0.0.1 (localhost) only. The ADDRESS tag will be empty in this case.
> Is that a bug or a feature ? In an older release I did not have this problem.
>
> As I am forced to get a new IP address every 24 hours,
> I made the following work around by patching sbin/esmtpd :
>
> --
> # (gbrast 26.7.2003) The smtp is now listening to the address that ppp0 owns
> # it means esmtp must be restarted every time when the dynamic address
> # changes
I am not sure if this is a bug or not. But would it not be better if
you bind your esmtpd to the loopback interface permanently, and then
use your operating system's firewalling code to forward packets from
your ppp interface to the loopback interface? For example, in linux
you can do that easily with iptables, and in FreeBSD or OpenBSD with
ipf. Saves you the hassle of restarting esmtpd and figuring out the
address and all that.
> ADDRESS=`/sbin/ifconfig ppp0 | awk '/addr/ { print substr($2,6,length($2))}a'|
> head -1`
> echo "SMTP Listening at address: " $ADDRESS
> echo
>
> if test "$ADDRESS" != ""
> then
> ADDRESS="-address=$ADDRESS"
> fi
> --
>
> Did I overlook something or do I have to upgrade to a never version ?
> Thanks for any tips in advance.
--
Anand Buddhdev
http://anand.org
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users