- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Squirrelmail - apache set sender to user@ part of ...
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Forums
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 02:33 AM
05-05-2006 02:33 AM
Squirrelmail - apache set sender to user@ part of in-addr.arpa
On one server, squirrelmail sends mail just fine - sets the domain name correctly:
May 5 07:09:35 server1 sendmail[29265]: k45E9Zm9029265: from=gjwild@mydomain.com, size=563, class=0, nrcpts=1, msgid=<36063.X.X.X.X.1146838175.squirrel@server1.mydomain.com>, relay=apache@localhost
But on the other server:
May 5 08:20:39 server2 sendmail[5066]: k45FKdnl005066: from=gjwild@228.60, size=532, class=0, nrcpts=1, msgid=<57249.X.X.X.X.1146842439.squirrel@Y.Y.Y.Y>, relay=apache@localhost
May 5 08:20:39 server2 sendmail[5067]: k45FKdDI005067: ruleset=check_mail, arg1=
Why is it setting the domain name incorrectly?
Real domains/ip's hidden to protect the innocent...
From the commaind lin on server2, mail -s works fine - so I know it isn't sendmail config. Something in apache or squirrelmail? The squirrelmail config.php is the same on both servers...
Any ideas?
Thanks...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 02:55 AM
05-05-2006 02:55 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
Try logging as the apache user and run:
sendmail -v -f sender@domain recipient@domain.
sendmail -v -f sender recipient@domain
Do you get the domain as 228.60 or this is just a recorted version to protect your client?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 03:09 AM
05-05-2006 03:09 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
On both servers:
grep domain /etc/squirrelmail/config.php
$domain = 'localhost';
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 03:11 AM
05-05-2006 03:11 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
IE: server2's ip is: 192.168.228.60
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 03:18 AM
05-05-2006 03:18 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
First way, it worked...second way:
/usr/sbin/sendmail -v -f gjwild gwild@another.email.com
Worked as well - but added the hostename to the MAIL From: gjwild@server2.mydomain.com
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 03:33 AM
05-05-2006 03:33 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 03:59 AM
05-05-2006 03:59 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 04:02 AM
05-05-2006 04:02 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 04:22 AM
05-05-2006 04:22 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
Found the issue...
AT the office where I work (day job), for some reason, the browser set my http:// to the ip instead of the virtual hostname!
IE, instead of the url: http://webmail.mydomain.com/src/webmail.php it was http://192.168.228.60/src/webmail.php
That's where squirrelmail/apache was getting the 228.60 from!
As soon as I changed it to the non ip based url - sending email worked!
Sigh....
I learned some more - and I hope this helps someone else in the future.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 04:24 AM
05-05-2006 04:24 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 04:37 AM
05-05-2006 04:37 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
Interesting problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-05-2006 04:46 AM
05-05-2006 04:46 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
I do "virtual hosting" so I can hard code the domain name - so the plugin for squirrelmail figures out your domain name from the url it was accessed from.
IE - if webmail.mydomain.com then the user is me@mydomain.com
If I hosted for you, the webmail.yourdomain.com would set the user as you@yourdomain.com and so on.
I guess I could add a some sort of check and if it sees an ipaddress instead, then it either sets a default (that would be bad for virtual domains) or asks you to tell it what the domain should be (bad as well - as the user could say set it to joehack@imaspammer.com).
I guess the best would be to not allow login at all if there is no domain in the url.
Rgds...Geoff
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-06-2006 10:31 AM
05-06-2006 10:31 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
Not to beat a closed thread, but I've found squirrellmail will use the genericstable for outbound mail, assuming that genericstable features is enabled in sendmail.
If you bump sendmail logging up to 16 you will see this in the maillog file when squirrelmail sends mail.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2006 03:15 AM
05-07-2006 03:15 AM
Re: Squirrelmail - apache set sender to user@ part of in-addr.arpa
I know this because our team did the same thing to one of our DNS servers and it suddenly lost the ability to resovlve domains over which it did not have authority.
I recommend immediate attention to that one to avoid loss of mail.
We backed out the change when testing caused this bad result.
SEP
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com