Inconsistent HELO URLs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I'm having problem getting  SquirrelMail 1.4.22 to send a consistent
HELO URL to the mail server (postfix 2.8.5). It seems to depend on
what URL I use to reach the web server (Apache 2.2.20). All is
installed via the default Ubuntu 11.10 repositories).

The server is behind a firewall on a private address (192.168.0.X) and
reachable from the Internet via dynamic DNS and port forwarding. So
the server is reachable with a bunch of different URL:s (private IP,
external IP, internal host name(s)/DNS and external dyn-dns name).

Is this how SquirrelMail is intended to behave? And in that case is
there anyway to configure away this behavior?

This is my first attempt ever to set up my own mail server and not
very experienced in Apache but I have tried a few  solutions found on
the net:
 * To set it using Server Settings/Domain using squirrelmail-configure
 * Set ServerName in the Apache config
Both without success.
 * Using mod rewrite in Apache
Seems to work, but has the drawback that I must rewrite to the
external DNS name to always get the same HELO URL.

I have also checked the source and the problem seems to be in
“Deliver_SMTP.class.php” where $_SERVER['HTTP_HOST'] is used if
available. I don't know much about PHP but from what I can see in the
PHP docs HTTP_HOST comes from the http request itself. I would however
like to avoid to do any changes in th source code (so that I can get
updates from Ubuntu without things stop working).

The reason I like to get the same HELO URL is that it seems to make it
a bit easier to use restrictions in postfix and to check the mail logs
for unwanted activities.

Best Regards
/Jens

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
-----
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): https://lists.sourceforge.net/lists/listinfo/squirrelmail-users



[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux