[BusyBox] Busybox 1.0.0-pre10 and sendmail

Michael Shearer mshearer at aastra.com
Mon May 10 17:54:32 UTC 2004


Hi,

Why Sendmail, good question.  Well, it's the defacto SMTP daemon isn't it?  I don't really need all it's features but apart from being a hassle to configure, it's stable and secure.  I'd welcome any other recommendations.

Why should BB set permissions to '/'?  Because right now, that's the only way I could get Sendmail to work.  Or else it complained that I had a World Writeable directory and didn't even want to start.  

I've since figured out the problem.  It turns out that this is only an issue when mounting the root filesystem over NFS.  The directory where my rootfs was located was World Writeable...  That's why the / inherited those permissions.  Now, it's debatable whether or not mount -t nfs should have changed those back to a+rwx,u-w. (Erik, any comments?)

Mike

-----Original Message-----
From: Tzafrir Cohen [mailto:tzafrir at technion.ac.il]
Sent: Monday, May 10, 2004 1:36 PM
To: Michael Shearer
Cc: busybox at mail.codepoet.org
Subject: Re: [BusyBox] Busybox 1.0.0-pre10 and sendmail


On Mon, May 10, 2004 at 11:28:20AM -0400, Michael Shearer wrote:
> Hi,
> 
> Has anyone every successfully used Sendmail on Busybox?  

One possily-silly question: why sendmail? What do you need it for? Don't
you have anything better/simpler ?

> I'm not sure if it's a BB issue but I can't seem to figure 
> this one out and I was wondering if anyone had encountered 
> the same problems I had.  It looks like when start Sendmail, 
> it checks the directory and file permissions on certain files 
> used by Sendmail.  The owner:group and permissions are set to 
> root:root and rwx-rx-rx on /etc, /etc/mail and /etc/mail/*.  
> The problem seems to be the root directory '/'?!?  I need to 
> do a "chmod go-w /" before I can use Sendmail.  Shouldn't the 
> Busybox mount command be setting these permissions correctly?

Why would the busybox mount command set permissions to that dir?

In what environment do you run it?

> 
> Here's the Sendmail trace:
> 
> 
> # [dir /] mode 40777 FATAL
> # sendmail -v -d44.4 -bv postmaster
> safefile(/etc/mail/sendmail.cf, uid=0, gid=0, flags=6000, mode=400):
> safedirpath(/etc/mail, uid=0, gid=0, flags=6000, level=0, offset=0):
>         [dir /] mode 40777 WARNING
>         [dir /etc/mail] OK
>         [uid 0, nlink 1, stat 100644, mode 400]         OK
> safefile(/etc/mail/local-host-names, uid=0, gid=0, flags=6580, mode=400):
> safedirpath(/etc/mail, uid=0, gid=0, flags=6580, level=0, offset=0):
>         [dir /] mode 40777 FATAL
>         [dir /etc/mail] World writable directory
> /etc/mail/sendmail.cf: line 91: fileclass: cannot open '/etc/mail/local-host-names': World writable directory
> safefile(/etc/mail/relay-domains, uid=0, gid=0, flags=6580, mode=400):
> safedirpath(/etc/mail, uid=0, gid=0, flags=6580, level=0, offset=0):
>         [dir /] mode 40777 FATAL
>         [dir /etc/mail] World writable directory
> Warning: Option: AuthOptions requires SASL support (-DSASL)
> safefile(/etc/mail/trusted-users, uid=0, gid=0, flags=6580, mode=400):
> safedirpath(/etc/mail, uid=0, gid=0, flags=6580, level=0, offset=0):
>         [dir /] mode 40777 FATAL
>         [dir /etc/mail] World writable directory
> /etc/mail/sendmail.cf: line 568: fileclass: cannot open '/etc/mail/trusted-users': World writable directory
> safefile(/etc/mail/service.switch, uid=0, gid=0, flags=6480, mode=400):
> safedirpath(/etc/mail, uid=0, gid=0, flags=6580, level=0, offset=0):
>         [dir /] mode 40777 FATAL
>         [dir /etc/mail] World writable directory
>         No such file or directory
> safefile(/etc/mail/service.switch, uid=0, gid=0, flags=6480, mode=400):
> safedirpath(/etc/mail, uid=0, gid=0, flags=6580, level=0, offset=0):
>         [dir /] mode 40777 FATAL
>         [dir /etc/mail] World writable directory
>         No such file or directory
> safedirpath(/var/spool/mqueue, uid=0, gid=0, flags=4, level=0, offset=0):
>         [dir /] mode 40777 WARNING
>         [dir /var/spool/mqueue] OK
> 
> Michael Shearer
> CVX SS7 Gateway (CSG) Engineer
> Aastra Telecom US, CVX Division
> 8 Federal Street
> Billerica, MA, USA, 01821-3570
> * Phone (978) 436-4248
> * Fax (978) 436-4233
> * Internet Mail mshearer at aastra.com
> * Web www.aastra.com
> 

> _______________________________________________
> busybox mailing list
> busybox at mail.busybox.net
> http://busybox.net/mailman/listinfo/busybox


-- 
Tzafrir Cohen                       +---------------------------+
http://www.technion.ac.il/~tzafrir/ |vim is a mutt's best friend|
mailto:tzafrir at technion.ac.il       +---------------------------+



More information about the busybox mailing list