HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   General (http://www.howtoforge.com/forums/forumdisplay.php?f=25)
-   -   perfect server Debian wheezy + ISPCFG3 mail related question (http://www.howtoforge.com/forums/showthread.php?t=62451)

Ovidiu 5th July 2013 18:46

perfect server Debian wheezy + ISPCFG3 mail related question
 
Every now and then, I have a look inside /var/mail and find a few emails that bounced. They are always some automated mails sent out by a CMS (in this case Wordpress) i.e. after a new user signed up that bounced, i.e. the user signed up with a wrong email.
They are all sent via phpmail() and the sender is something like "webxxx@myserver"

There are very few, I just checked and found 3 from within the last 3 months.

I was just wondering what could have gone wrong and why they are ending up in that folder instead of in the proper vmail folders?

Ovidiu 16th March 2014 09:16

Any advice?

till 16th March 2014 13:35

Did you take a look into the bounce messages for the reason why the other servers rejected the message? Maybe they thought it was spam and rejected it for that reason, or the recipient address did not exist or its quota was full. There are many reasons why a email gets rejected.

Ovidiu 17th March 2014 08:08

THX Till, but I stated all of that above. The message was bounced because i.e. someone signed up with a wrong email. So its a legitimate bounce but why does it end up inside of /var/mail when all other regular email addresses end up inside /var/vmail? That was the question.

till 17th March 2014 11:16

Emails that get send to the hostname of your server ens up in /var/mail,as the hostname of your server is a system account while the accounts in /var/vmail are virtual postfix accounts.

Ovidiu 17th March 2014 11:48

Thanks Till but what would be the easiest way to actually be aware of those emails?
Currently I make it a habit to periodically check that folder...

Any way to get notified or get them redirected?

till 17th March 2014 13:01

You can add something like this to /etc/aliases:

web1: your@adddress.tld


replace web1 with the web user of the web were you want to forward the adress for and the email address with the target email address.

then run:

newaliases

to apply the changes.


All times are GMT +2. The time now is 11:27.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.