[SM-USERS] How to set the FQDN part of message IDs

2011-09-09 Thread Lutz Hayen

Messages composed with squirrelmail exhibit a 
message-ID of the form

Message-ID: <52cc03754aabf3aaa8404190dec4364f.squirrel@192.168.79.124>

The part behind the @ is the IP address of the server 
running squirrelmail. This is a private 192.168.x.y 
IP address, therefore not a good choice for the FQDN 
(fully qualified domain name) part of the Message ID.

I'd like to replace this part with a real FQDN that
we own.

I've searched through the documentation and grepped
through the configuration files and the source files.
compose.php contains a function comment that states
this function might add message-id among other headers,
 but I cannot find the message-id being added in this 
function.

I cannot find where the Message-ID is generated in
squirrelmail and how it could be configured.
Please someone point me to the relevant documentation or
code section or configuration variable.

SquirrelMail version 1.4.21, from Ubuntu package version 
2:1.4.21-1
plugins installed: local_autorespond_forward -3.0.1-1.4.0,
compatibility-2.0.16-1.0
PHP version 5.3.5
Web server Apache 2.2.17
IMAP server dovecot 1.2.15
SMTP postfix 2.8.2
OS Ubuntu 11.04 32 Bit kernel 2.6.38-11
Installed all software with ubuntu package manager
Browsers tried Firefox 3.0.22 and 6.0.2

  
--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] How to set the FQDN part of message IDs

2011-09-09 Thread michael crane

On Fri, September 9, 2011 3:34 pm, Lutz Hayen wrote:
>
> Messages composed with squirrelmail exhibit a
> message-ID of the form
>
> Message-ID: <52cc03754aabf3aaa8404190dec4364f.squirrel@192.168.79.124>
>
> The part behind the @ is the IP address of the server
> running squirrelmail. This is a private 192.168.x.y
> IP address, therefore not a good choice for the FQDN
> (fully qualified domain name) part of the Message ID.
>
> I'd like to replace this part with a real FQDN that
> we own.
>
> I've searched through the documentation and grepped
> through the configuration files and the source files.
> compose.php contains a function comment that states
> this function might add message-id among other headers,
>  but I cannot find the message-id being added in this
> function.
>
> I cannot find where the Message-ID is generated in
> squirrelmail and how it could be configured.
> Please someone point me to the relevant documentation or
> code section or configuration variable.
>
> SquirrelMail version 1.4.21, from Ubuntu package version
> 2:1.4.21-1
> plugins installed: local_autorespond_forward -3.0.1-1.4.0,
> compatibility-2.0.16-1.0
> PHP version 5.3.5
> Web server Apache 2.2.17
> IMAP server dovecot 1.2.15
> SMTP postfix 2.8.2
> OS Ubuntu 11.04 32 Bit kernel 2.6.38-11
> Installed all software with ubuntu package manager
> Browsers tried Firefox 3.0.22 and 6.0.2
>
>

It might get it from ServerName in httpd.conf

mick

-- 
"Can you tell what metal that is ?"
"I'll need some tools".
"Barnes, bring some tools".




--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


Re: [SM-USERS] How to set the FQDN part of message IDs

2011-09-09 Thread Paul Lesniewski
>> I cannot find where the Message-ID is generated in
>> squirrelmail and how it could be configured.
>> Please someone point me to the relevant documentation or
>> code section or configuration variable.
>>
> That would be "class/Deliver.class.php."
>
> I'm no coder, but if you wish, write me off-list I'll send you my hack.

Michael is correct - it comes from ServerName in your Apache
configuration.  If nothing is found there, it falls back to the
$domain setting in SquirrelMail.  Sounds like you may not have your
machine's hostname set up correctly.  That'd be where I would start.
If you do, then you need to figure out why Apache isn't picking it up.
 Hacking the SquirrelMail code is not the right place to fix this.

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

--
Why Cloud-Based Security and Archiving Make Sense
Osterman Research conducted this study that outlines how and why cloud
computing security and archiving is rapidly being adopted across the IT 
space for its ease of implementation, lower cost, and increased 
reliability. Learn more. http://www.accelacomm.com/jaw/sfnl/114/51425301/
-
squirrelmail-users mailing list
Posting guidelines: http://squirrelmail.org/postingguidelines
List address: squirrelmail-users@lists.sourceforge.net
List archives: http://news.gmane.org/gmane.mail.squirrelmail.user
List info (subscribe/unsubscribe/change options): 
https://lists.sourceforge.net/lists/listinfo/squirrelmail-users