/var/spool/mail/root growing fast

Discuss the Scalix Server software

Moderators: ScalixSupport, admin

rgmhtt
Posts: 70
Joined: Wed Jan 04, 2006 4:37 pm
Location: Oak Park

/var/spool/mail/root growing fast

Postby rgmhtt » Thu Aug 16, 2007 4:58 pm

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.

kanderson

Postby kanderson » Fri Aug 17, 2007 1:03 am

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.

rgmhtt
Posts: 70
Joined: Wed Jan 04, 2006 4:37 pm
Location: Oak Park

Postby rgmhtt » Fri Aug 17, 2007 10:18 am

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?

kanderson

Postby kanderson » Fri Aug 17, 2007 10:36 am

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.

TRACKS
Posts: 106
Joined: Mon Feb 19, 2007 4:56 pm

Postby TRACKS » Mon Aug 20, 2007 12:00 pm

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
TRACKS
4000+ users

kanderson

Postby kanderson » Mon Aug 20, 2007 12:14 pm

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.

TRACKS
Posts: 106
Joined: Mon Feb 19, 2007 4:56 pm

Postby TRACKS » Mon Aug 20, 2007 12:18 pm

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
TRACKS
4000+ users

kanderson

Postby kanderson » Mon Aug 20, 2007 12:29 pm

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.


Return to “Scalix Server”



Who is online

Users browsing this forum: No registered users and 5 guests

cron