|
FreeBSD Ports and Packages Installation and upgrading of ports and packages on FreeBSD. |
|
Thread Tools | Display Modes |
|
|
|||
Savemail panic, cannot save rejected email anywhere
I'm not sure what to do about the following lines that recently started showing up in /var/log/messages on my FreeBSD 6.2-RELEASE server at home:
Code:
Jan 6 03:04:24 sendmail[4673]: n05CBoHb001464: Losing ./qfn05CBoHb001464: savemail panic Jan 6 03:04:24 sendmail[4673]: n05CBoHb001464: SYSERR(root): savemail: cannot save rejected email anywhere Jan 6 03:04:24 sendmail[4673]: n05CBoHc001464: Losing ./qfn05CBoHc001464: savemail panic Jan 6 03:04:24 sendmail[4673]: n05CBoHc001464: SYSERR(root): savemail: cannot save rejected email anywhere Jan 6 03:04:24 sendmail[4673]: n0684OXl004673: Losing ./qfn0684OXl004673: savemail panic Jan 6 03:04:24 sendmail[4673]: n0684OXl004673: SYSERR(root): savemail: cannot save rejected email anywhere Jan 6 03:04:24 sendmail[4673]: n0684OXn004673: Losing ./qfn0684OXn004673: savemail panic Jan 6 03:04:24 sendmail[4673]: n0684OXn004673: SYSERR(root): savemail: cannot save rejected email anywhere Code:
# $FreeBSD: src/etc/mail/mailer.conf,v 1.3 2002/04/05 04:25:12 gshapiro Exp $ # # Execute the "real" sendmail program, named /usr/libexec/sendmail/sendmail # sendmail /usr/libexec/sendmail/sendmail send-mail /usr/libexec/sendmail/sendmail mailq /usr/libexec/sendmail/sendmail newaliases /usr/libexec/sendmail/sendmail hoststat /usr/libexec/sendmail/sendmail purgestat /usr/libexec/sendmail/sendmail This system does not ordinarily send mail out; indeed I do not even own a domain to send mail out from... |
|
|||
Here is a line that caught my eye in /var/log/maillog
Code:
Jan 6 03:04:24 sendmail[4673]: n05CBoHb001464: to=<root@myserver.org>, delay=19:50:19, xdelay=00:00:00, mailer=local, pri=363219 9, relay=local, dsn=5.2.0, stat=Service unavailable (/var/mail/root: irregular f ile) I then checked /var/mail/root: Code:
ls -ltd /var/mail/root lrwxr-xr-x 1 root mail 13 Dec 21 10:03 /var/mail/root -> /root/varmail Code:
ls -ltd /root/varmail -rw------- 1 root wheel 45164271 Jan 6 10:25 /root/varmail |
|
|||
Quote:
Why would the root mailbox need different permissions? That seems less than ideal, for sure... |
|
||||
Note: I'm not entirely sure whether the root mailbox can be symlinked like that. Sendmail likes a normail mailbox file to drop mail in, but if it can't follow the symlink due to a privilege problem, it may not report that correctly.
|
|
||||
It's not so much about the mailbox permissions. All other mailboxes are in a directory that's writable by 'mail' (i.e. /var/mail). Your root mailbox is symlinked to a mailbox in the directory /root, which is not writable by 'mail'. That's why I suggest you create a subdirectory named 'mail' under /root that is writable by 'mail'. Still not sure about the symlink being acceptable for Sendmail, but one step at a time.
|
|
|||
Hmm, this doesn't seem to be solving the problem yet. As root, I made a directory /root/Varmail for the file /root/Varmail/varmail:
Code:
>ls -ltd /root/Varmail drwxrw---- 2 root mail 512 Jan 9 12:22 /root/Varmail Code:
ls -tld /root/Varmail/varmail -rwxrw---- 1 root mail 45164271 Jan 6 10:25 /root/Varmail/varmail Code:
ls -ltd /var/mail/root lrwxr-xr-x 1 root mail 21 Jan 9 12:23 /var/mail/root -> /root/Varmail/varmail |
|
||||
I just more or less copied your setup, although my local delivery agent is procmail. What procmail does it this:
This is in /var/mail Code:
lrwxr-xr-x 1 root mail 15 Jan 10 22:28 BOGUS.root.NQR -> /root/mail/root -rw------- 1 root mail 1093 Jan 10 22:29 root Based on that I'd say symlinking a mailbox from /var/mail, even with correct ownership and privileges, is not possible. |
|
|||
Quote:
Interesting. I have created a new file "root" in /var/mail with the appropriate permissions to see how sendmail and savemail react. I suspect the conclusion here may be that I made a foolish administrative decision when I set up this system at home - I made /var its own 100MB partition, while giving around 50GB to / and 230GB to /usr. Clearly I should have given more space to /var... Having seen that sendmail dislikes symlink files, I wonder if I could get away with a symlink directory instead? Perhaps it would be worthwhile to make a varmail directory in /usr, that /var/mail points to as a symlink itself? Then I could move all the mailboxes from /var/mail to /usr... |
|
||||
Quote:
|
|
|||
DutchDaemon,
Does procmail complain if you chmod the link itself to rw for root only, by using the "-h' flag to chmod? Code:
# chmod -h 600
__________________
You don't need to be a genius to debug a pf.conf firewall ruleset, you just need the guts to run tcpdump |
|
||||
Quote:
Code:
lrw------- 1 root mail 15 Jan 11 04:04 root -> /root/mail/root Jan 11 04:05:21 server procmail[94814]: Renamed bogus "/var/mail/root" into "/var/mail/BOGUS.root.NQR" lrw------- 1 root mail 15 Jan 11 04:04 BOGUS.root.NQR -> /root/mail/root -rw------- 1 root mail 1053 Jan 11 04:05 root Last edited by DutchDaemon; 11th January 2009 at 03:08 AM. |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
PLEASE HELP SAVE BSD MAGAZINE | Kruzer | Off-Topic | 14 | 27th August 2009 05:10 PM |
how to save stackoverflow podcasts? | ephemera | Off-Topic | 4 | 19th July 2009 03:32 PM |
Doing a fresh install - what to save? | Bruco | FreeBSD General | 4 | 30th May 2009 01:49 PM |
Partition(s) present but not detected after panic | jb_daefo | FreeBSD General | 0 | 29th May 2009 07:01 PM |
FBSD 7 cd boot-only, kernel panic | cysquatch | FreeBSD Installation and Upgrading | 9 | 18th July 2008 01:49 AM |