Page 1 of 1

/var/spool/mail/root growing fast

Posted: Thu Aug 16, 2007 4:58 pm
by rgmhtt
At about 2Mb/hour.

Now that is bad enough, how do I process this mail, Webmin's interface?

And I have looked at some of this mail with Webmin.

I get an email to a non-existant user. It gets routed to root.

root turns around and sends a bounce to the sender.

Scalix cannot send mail, sender does not exist, so delivers mail back to root!

Perhaps if at least Scalix would drop any mail from root@localhost to a non-existant user, that would be a big help.

Posted: Fri Aug 17, 2007 1:03 am
by kanderson
Add your domain name to /etc/mail/local-host-name. Then restart sendmail.

You may also want to edit /etc/aliases so that mail for root is delivered to a user within Scalix (I usually choose sxadmin).

Kev.

Posted: Fri Aug 17, 2007 10:18 am
by rgmhtt
kanderson wrote:Add your domain name to /etc/mail/local-host-name. Then restart sendmail.


So say my server is: mail.foo.bar So I want to add foo.bar or foo.bar. to local-host-name?

You may also want to edit /etc/aliases so that mail for root is delivered to a user within Scalix (I usually choose sxadmin).


What is the format of this? I see how to aliase to another Linux user, but not to full mail name. Will the mail still be to: root@mail.foo.bar or will sendmail or Scalix overwirte the To: header?

Posted: Fri Aug 17, 2007 10:36 am
by kanderson
Yes, that's correct, just use the email address in user@domain.com form inside the aliases file.

Generally, I'd put foo.bar as well as mail.foo.bar. Be aware that Suse seems to have a habit of rewriting your outbound email address when you do this, so check that everything is correct after you make this change.

Kev.

Posted: Mon Aug 20, 2007 12:00 pm
by TRACKS
Kevin

are you saying this

Code: Select all

# General redirections for pseudo accounts.
bin:            root
daemon:         root
adm:            root
lp:             root
sync:           root
shutdown:       root
halt:           root
mail:           sxadmin
news:           root
uucp:           root
operator:       root
games:          root
gopher:         root
ftp:            root
nobody:         root

Posted: Mon Aug 20, 2007 12:14 pm
by kanderson
Personally, I'd put that back to root, then at the top of that file, there will be an entry for root. Change it to be something like:

root: sxadmin@server.com

Kev.

Posted: Mon Aug 20, 2007 12:18 pm
by TRACKS
like this?

Code: Select all

# Basic system aliases -- these MUST be present.
mailer-daemon:  postmaster
postmaster:     root
root:           sxadmin@mysweetdomain.com
# General redirections for pseudo accounts.
bin:            root
daemon:         root
adm:            root
lp:             root
sync:           root
shutdown:       root
halt:           root
mail:           root
news:           root
uucp:           root
operator:       root
games:          root
gopher:         root
ftp:            root

Posted: Mon Aug 20, 2007 12:29 pm
by kanderson
That's the one.

Now at the command line, type newaliases, and you're done. Root will no longer get email, it will all go to sxadmin.

Kev.