Unix Technical Forum

sendmail and .forward, WTF

This is a discussion on sendmail and .forward, WTF within the Slackware Linux Support forums, part of the Unix Operating Systems category; --> slackware-10.1, sendmail-8.13.3-i486-2 configured as per default installation, except for localized local-host-names and virtusertable. /etc/syslog.conf directs mail.* to /var/log/mail. for ...


Go Back   Unix Technical Forum > Unix Operating Systems > Slackware Linux Support

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-20-2008, 10:57 AM
William Hunt
 
Posts: n/a
Default sendmail and .forward, WTF


slackware-10.1, sendmail-8.13.3-i486-2
configured as per default installation, except for
localized local-host-names and virtusertable.

/etc/syslog.conf directs mail.* to /var/log/mail.

for each piece of incoming mail, /var/log/mail shows
two error messages:

[...] forward /home/XXX/.forward: Group writable directory
[...] forward /home/XXX/.forward.xxx: Group writable directory

where 'XXX' is user login and 'xxx' is local hostname
(as per hostname -a).

All user /home/ directories are configure 0711.
Some users have a .forward file and some don't.
No user has a .forward.xxx file.
Where a .forward exists, it is owned by XXX.users with
0644 perms.

In every case, two error messages.
In every case, mail gets deliverd to /var/spool/mail/XXX,
ignoring the .forward when it exists.

Okay: WTF am I missing? WTF does sendmail think is
group writable? How did I manage to screw up something
as simple as sendmail ?

Any relevant clues, tips, pointers, refernces,
solutions and/or jokes would be appreciated.

Thanks!

--
William Hunt, Portland Oregon USA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-20-2008, 10:57 AM
Loki Harfagr
 
Posts: n/a
Default Re: sendmail and .forward, WTF

Le Tue, 20 Sep 2005 09:54:43 -0700, William Hunt a écrit*:

>
> slackware-10.1, sendmail-8.13.3-i486-2
> configured as per default installation, except for
> localized local-host-names and virtusertable.
>
> /etc/syslog.conf directs mail.* to /var/log/mail.
>
> for each piece of incoming mail, /var/log/mail shows
> two error messages:
>
> [...] forward /home/XXX/.forward: Group writable directory
> [...] forward /home/XXX/.forward.xxx: Group writable directory
>
> where 'XXX' is user login and 'xxx' is local hostname
> (as per hostname -a).
>
> All user /home/ directories are configure 0711.
> Some users have a .forward file and some don't.
> No user has a .forward.xxx file.
> Where a .forward exists, it is owned by XXX.users with
> 0644 perms.
>
> In every case, two error messages.
> In every case, mail gets deliverd to /var/spool/mail/XXX,
> ignoring the .forward when it exists.
>
> Okay: WTF am I missing? WTF does sendmail think is
> group writable? How did I manage to screw up something
> as simple as sendmail ?


Maybe you didn't, it's just that sometimes some tools
reinforce their default rules. Oh I can't wait for Sendmail version 10
in heavy cross testing at the time, it'll rock but ...
there gonna be a heavy reading to get prepared ...

Now, you had this puny joke, let's go on the rest of your request :

> Any relevant clues, tips, pointers, refernces,
> solutions and/or jokes would be appreciated.


A reference pointer, no joke, it'll help ;-)

http://www.sendmail.org/secure-install.html

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-20-2008, 10:57 AM
Eric Hameleers
 
Posts: n/a
Default Re: sendmail and .forward, WTF

William Hunt wrote:

> for each piece of incoming mail, /var/log/mail shows
> two error messages:
>
> [...] forward /home/XXX/.forward: Group writable directory
> [...] forward /home/XXX/.forward.xxx: Group writable directory
>
> where 'XXX' is user login and 'xxx' is local hostname
> (as per hostname -a).
>
> All user /home/ directories are configure 0711.
> Some users have a .forward file and some don't.
> No user has a .forward.xxx file.
> Where a .forward exists, it is owned by XXX.users with
> 0644 perms.


Sendmail will mutter like this if / or /home are group writable.

Cheers, Eric
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-20-2008, 10:58 AM
William Hunt
 
Posts: n/a
Default Re: sendmail and .forward, WTF

On Tue, 20 Sep 2005 19:37:02 +0200, Loki Harfagr wrote:
> Le Tue, 20 Sep 2005 09:54:43 -0700, William Hunt a écrit*:
>> slackware-10.1, sendmail-8.13.3-i486-2
>> configured as per default installation, except for
>> localized local-host-names and virtusertable.

[...]
>> Any relevant clues, tips, pointers, refernces,
>> solutions and/or jokes would be appreciated.

>
> A reference pointer, no joke, it'll help ;-)
>
> http://www.sendmail.org/secure-install.html


you gotta be joking : i hope i don't have to compile from the
sendmail.org source distribution, just to get .forward working :*)


--
William Hunt, Portland Oregon USA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-20-2008, 10:58 AM
Steve Youngs
 
Posts: n/a
Default Re: sendmail and .forward, WTF

* William Hunt <wjh@prv8.net> writes:

> On Tue, 20 Sep 2005 19:37:02 +0200, Loki Harfagr wrote:
>> A reference pointer, no joke, it'll help ;-)
>>
>> http://www.sendmail.org/secure-install.html


> you gotta be joking : i hope i don't have to compile from the
> sendmail.org source distribution, just to get .forward working :*)


Bah! Compiling and configuring sendmail is a doddle. I've done it
many times.

--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| Genius - Is the ability to reduce |
| the complicated to the simple |
|----------------------------------<steve@youngs.au.com>---|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-20-2008, 10:58 AM
William Hunt
 
Posts: n/a
Default Re: sendmail and .forward, WTF -FIXED

On Tue, 20 Sep 2005 20:13:29 +0200, Eric Hameleers wrote:
> William Hunt wrote:
>> for each piece of incoming mail, /var/log/mail shows
>> two error messages:
>> [...] forward /home/XXX/.forward: Group writable directory
>> [...] forward /home/XXX/.forward.xxx: Group writable directory

[...]
>
> Sendmail will mutter like this if / or /home are group writable.


Right.
both / and /home are 0755, user dirs all 0711.
but, (heh-heh) i've got /home mount'd -bind off /mnt/hda4/home,
and /mnt/hda4/home perms were bogus. doh!
chmod 0755 /mnt/hda4/home && echo "FIXED"

Thanks!

>
> Cheers, Eric


--
William Hunt, Portland Oregon USA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-20-2008, 10:58 AM
William Hunt
 
Posts: n/a
Default Re: sendmail and .forward, WTF -FIXED

On Tue, 20 Sep 2005 22:30:02 +0000, Steve Youngs wrote:
> * William Hunt <wjh@prv8.net> writes:
>> On Tue, 20 Sep 2005 19:37:02 +0200, Loki Harfagr wrote:
>>> A reference pointer, no joke, it'll help ;-)
>>> http://www.sendmail.org/secure-install.html

>
>> you gotta be joking : i hope i don't have to compile from the
>> sendmail.org source distribution, just to get .forward working :*)

>
> Bah! Compiling and configuring sendmail is a doddle. I've done it
> many times.


Sure and me too. :*) but the slackware package has been fine for
me since the first 8.9 or so, and seems to be just fine stil.
the problem here was indeed directory permission, just like the
error message said. compiling from source would never fix that.

besides, i'll get enough misery when i start mucking the m4 again.



--
William Hunt, Portland Oregon USA

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-20-2008, 10:59 AM
Steve Youngs
 
Posts: n/a
Default Re: sendmail and .forward, WTF -FIXED

* William Hunt <wjh@prv8.net> writes:

> On Tue, 20 Sep 2005 22:30:02 +0000, Steve Youngs wrote:
>> Bah! Compiling and configuring sendmail is a doddle. I've done it
>> many times.


> Sure and me too. :*) but the slackware package has been fine for
> me since the first 8.9 or so, and seems to be just fine stil.


One of the reasons I compile Sendmail is that the Slackware Sendmail
package doesn't talk PostgreSQL, whereas mine does. :-)


--
|---<Steve Youngs>---------------<GnuPG KeyID: A94B3003>---|
| Genius - Is the ability to reduce |
| the complicated to the simple |
|----------------------------------<steve@youngs.au.com>---|
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 02-20-2008, 11:00 AM
Loki Harfagr
 
Posts: n/a
Default Re: sendmail and .forward, WTF -FIXED

Le Tue, 20 Sep 2005 15:35:04 -0700, William Hunt a écrit*:

> On Tue, 20 Sep 2005 20:13:29 +0200, Eric Hameleers wrote:
>> William Hunt wrote:
>>> for each piece of incoming mail, /var/log/mail shows
>>> two error messages:
>>> [...] forward /home/XXX/.forward: Group writable directory
>>> [...] forward /home/XXX/.forward.xxx: Group writable directory

> [...]
>>
>> Sendmail will mutter like this if / or /home are group writable.

>
> Right.
> both / and /home are 0755, user dirs all 0711.
> but, (heh-heh) i've got /home mount'd -bind off /mnt/hda4/home,
> and /mnt/hda4/home perms were bogus. doh!
> chmod 0755 /mnt/hda4/home && echo "FIXED"


Ah, that's something you may post to the comp.mail.sendmail group
and/or the alias sendmail-YYYY at domain support.sendmail.org
(see http://www.sendmail.org/email-addresses.html)

it may help some other users that could forget to not
only verify the rules for dirs but also the hidden tricks :-)


Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 06:51 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0
www.UnixAdminTalk.com