Re: Inconsistent HELO URLs

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

 



> 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?

Yes.  The original assumption seems to have been that SquirrelMail
would only ever be accessed via the domain for which you are serving
mail.  That's not all that bad of an assumption, although I think it
probably is a bad idea to use a value that essentially comes from what
the user typed into the address bar for an internal process.

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

I will look at possibly changing this or allowing it to be
configurable.  I think defaulting first to the $domain value seems
appropriate.

HOWEVER, I think you should reconsider your network design.  Why isn't
your webmail available by the same domain name no matter where you
are?  Why would you make yourself or your users have to remember
different addresses to access such things depending on where they are?
 Not user friendly IMO.

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

Create a special webmail-only port in your MTA that will allow you to
do whatever you want with mail coming from webmail instead of forcing
your users to have to do gymnastics to satisfy your internal
requirements.

-- 
Paul Lesniewski
SquirrelMail Team
Please support Open Source Software by donating to SquirrelMail!
http://squirrelmail.org/donate_paul_lesniewski.php

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