Outgoing mail issues

60 posts / 0 new
Last post
Tue, 09/06/2011 - 13:23
DoubleSpeed

Says...

User:marketing.btw Size:2904 Dest:/var/mail/marketing.btw Mode:None

I can actually see test messages I've sent to the email address using the 'Read User Mail' in Virtualmin however Outlook isn't collecting it now for some reason. There are no errors Outlook seems to check the mailbox OK however no mail is actually being downloaded.

This is odd as tests I ran much earlier prior to getting the outgoing SMTP working were collected by Outlook so something must have changed/be different now.

How can I fix/troubleshoot this?

Tue, 09/06/2011 - 14:39
andreychek

So, your email is being delivered, but to the wrong place.

Virtualmin will read email from anywhere, but since it's being delivered incorrectly, it's not accessible from Outlook.

What does your /etc/procmailrc file contain?

Also, to fix the "fatal: open database /etc/aliases.db: No such file or directory" error, you can run the command "newaliases".

-Eric

Tue, 09/06/2011 - 14:46
DoubleSpeed

Here's the contents of /etc/procmailrc.....

LOGFILE=/var/log/procmail.log
TRAP=/etc/webmin/virtual-server/procmail-logger.pl
:0wi
VIRTUALMIN=|/etc/webmin/virtual-server/lookup-domain.pl $LOGNAME
EXITCODE=$?
:0
* ?/usr/bin/test "$EXITCODE" = "73"
/dev/null
EXITCODE=0
:0
* ?/usr/bin/test "$VIRTUALMIN" != ""
{
INCLUDERC=/etc/webmin/virtual-server/procmail/$VIRTUALMIN
}
DEFAULT=/var/mail/$LOGNAME
ORGMAIL=/var/mail/$LOGNAME
DROPPRIVS=yes
:0
$DEFAULT

I did add a new mail user so do I have to run the newaliases command everytime I add an alias?

Tue, 09/06/2011 - 14:52
andreychek

It looks like some incorrect lines got in there somehow... try replacing these 5 lines at the end:

DEFAULT=/var/mail/$LOGNAME
ORGMAIL=/var/mail/$LOGNAME
DROPPRIVS=yes
:0
$DEFAULT

With these 3 lines:

ORGMAIL=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
DROPPRIVS=yes

And no, you don't need to run newaliases each time.

-Eric

Tue, 09/06/2011 - 15:03
DoubleSpeed

Thanks Eric, just sent a test and received it from the pop box so I think that this has solved it! Thank you very much for the help you have given me.

Mon, 12/10/2012 - 06:35
DoubleSpeed

Further to this old issue I have just seen this reoccur again we updated packages on the server and procmailrc was overwritten again as described above, what can I do to stop this from happening in the future?

Mon, 12/10/2012 - 08:41
andreychek

Howdy,

Do you happen to know what package caused the update?

Or do you have a list of packages that were updated recently?

And can you remind me what distro you're using?

-Eric

Sat, 12/15/2012 - 01:39
DoubleSpeed

Is there a log somewhere I can view showing packages that have been updated?

Operating system CentOS Linux 5.6 Virtualmin version 3.96.gpl GPL Webmin version 1.600 Kernel and CPU Linux 2.6.35.4-rscloud on x86_64

Sat, 12/15/2012 - 09:12
andreychek

You can see the packages updated on a CentOS system by looking in /var/log/yum.log.

-Eric

Pages