Page 1 of 1

Sendmail Queues Growing

Posted: Tue Nov 06, 2007 2:42 pm
by STXRich
Currently running 11.2 Community edition on Fedora 7.

I've been noticing an increase in the sendmail queues.
About 10 of 200 are valid and what I would expect to see.
ie. > Outbound emails where the server on the other end is too busy to respond.

What I don't like are the other 190 messages sitting in the queues. They are destined for this domain, but their for bogus email address's that don't exist in scalix. Since scalix isn't picking them up, they're sitting in the local sendmail queue.

Two questions:
1.) Why aren't they just being outright expunged if that isn't a valid email address?

2.) Is there a way to make the server do this? The problem being that scalix is a level above the core linux system, so I can't simply block based on username.


Thanks for any help.

-Keith-

Posted: Thu Nov 08, 2007 8:20 am
by Valerion
Make sure your domains you accept mail for is in your Scalix server's /etc/mail/local-host-names.

You can selectively apply filters in the Scalix smtpd.cfg file.

Posted: Thu Nov 08, 2007 9:27 am
by JasonWarren
Hi,
When editing the Scalix server's /etc/mail/local-host-names file eg:

mydomain.com
mydomain.co.uk
mydomain.eu
mydomain.org
myotherdomain.com
myotherdomain.eu


etc
Would you specifically add your mail server as well? eg

mail1.mydomain.com
mydomain.com
mydomain.co.uk
mydomain.eu
mydomain.org
myotherdomain.com
myotherdomain.eu

Regards,

Jason

Posted: Thu Nov 08, 2007 9:41 am
by Valerion
The local-host-names file lists what domains the machine is authorative for. If it gets a mail for user@domain, with domain in the local-host-names and the user does not exist in Scalix or as a UNIX mailbox, it will be bounced back.

Mailertable is a forwarding list, sending emails to the correct server to handle them, so it requires the domain to be forwarded to and the destination.

Posted: Thu Nov 08, 2007 11:10 am
by JasonWarren
Hi,
OK so a mail servers FQDN shouldnt be listed in Scalix server's /etc/mail/local-host-names file.

Thanks,

Jason

Posted: Fri Nov 09, 2007 1:20 am
by jaime.pinto
Just keep the FQDN as well.
You could have incoming emails of the format user@FQDN
You may also have FQDN in the list of domains inside scalix.
many applications will automatically send emails to entity@FQDN

Posted: Fri Nov 09, 2007 6:47 am
by JasonWarren
Hi
Sorry, confused now.
I was under the impression from the thread thus far that the Scalix mail servers FQDN wasnt required in Scalix server`s /etc/mail/local-host-names file.
Can anyone expand on this and clarify whether this is or not the case?

Regards,

Jason

Posted: Fri Nov 09, 2007 7:56 am
by Valerion
It's not neccesary, but if you change your machine's hostname and/or hosts file you may run into issues. Keeping it in there certainly won't do harm, I prefer to keep it in there for safety sake.

If you're curious what sendmail considers to be local, try looking at class "w" in a running system.

echo '$=w' | sendmail -bt

will do the trick for you.

Posted: Fri Nov 09, 2007 8:14 am
by JasonWarren
Thanks for this...much appreciated.

Best regards,

Jason

Posted: Fri Nov 09, 2007 8:54 am
by STXRich
Most of the times there aren't responses saying when things are fixed, and thought I'd offer my appreciation for all the knowledge on this forum.

Your fix worked great, queues are all empty now. All valid mails bouncing back.

Thanks
-Keith-