Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 3 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 26th January 2012, 17:14
archbird archbird is offline
Junior Member
 
Join Date: Oct 2010
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default Notification on new email to external email adress?

Hello,

Im running Ubuntu and ISPConfig3.

I have a mailbox, and I want to send a notification email to a external email adress when that email box have a new email. Something like "You got a new email login to user@domain.com to read it".

For what I understand I need to use procmail to achieve this. But how do I setup that script?

Since its vmail all accounts are in /var/vmail/domain.com/user

Is this where I should put the script file, or where do I put it? Also how do I activate it?

I cant seem to find any useful guides with the setup ubuntu + ispconfig3 + vmail

Also, another question, how do I make the script to only send a notification if the new email is a good email, and not for example spam mails (assume i somehow ignore mails with ***SPAM*** in the title)?

Thankful for some tips and help!
Reply With Quote
Sponsored Links
  #2  
Old 26th January 2012, 17:35
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,268 Times in 4,130 Posts
Default

procmail is not used on a ispconfig 3 server and you dont have to create any script files manually. The mail filtering language is either sieve (if you use dovecot) or maildrop ( if you use courier). The filter script can be inserted into the custom filter field in the mailbox settings in ispconfig. You will find a lot of examples for both filtering languages if you search in google.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
The Following User Says Thank You to till For This Useful Post:
archbird (27th January 2012)
  #3  
Old 27th January 2012, 13:34
archbird archbird is offline
Junior Member
 
Join Date: Oct 2010
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default

Thank you! That was easier than I thought.

But I have a problem still. When i send the notification to another mail-adress on my server it works as it should, but when I try to send it to a external (gmail.com) adress it doesnt work. Any ideas what i need to do to get it to work to a external adress?
Reply With Quote
  #4  
Old 27th January 2012, 13:49
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,268 Times in 4,130 Posts
Default

It should not matter if its a internal or external address. You might want to check the mail log if you get any errors there, maybe it is blocked by the spamfilter on your server or a spamfilter on the external server.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 27th January 2012, 17:12
archbird archbird is offline
Junior Member
 
Join Date: Oct 2010
Posts: 13
Thanks: 2
Thanked 0 Times in 0 Posts
Default

I found out it's probably blocked by gmails server. If i use a hotmail adress it works, but it gets marked as spam.

So it's something wrong in my configuration somewhere that makes them belive its spam/bad email.

My mails is not treated as spam if i send from mymailbox@mydomain.com, but it is treated as spam when maildrop sends it.

What's the maildroops from adress? Is it root@mydomain.com or something else?

I'll double check my domain SPF record, but it would be good to know the difference between maildrops email, and a regular email from mymailbox@mydomain.com?
Reply With Quote
  #6  
Old 27th January 2012, 17:20
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lneburg, Germany
Posts: 35,509
Thanks: 815
Thanked 5,268 Times in 4,130 Posts
 
Default

Quote:
What's the maildroops from adress?
Yous should be able to see that in the headers of the email that you received at hotmail. In general you should chacke that the reverse dns record for your server IP exists and that it matches with the hostnname of your server. Beside that, the hostanme of your server has to exist in dns as well.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix/courier/Centos 6 cant send email to external email servers maxtorzito Installation/Configuration 14 7th October 2011 10:56
Can't recieve email from external account (no bounce message) sampson Installation/Configuration 4 30th April 2010 15:37
Sender does not recieve mail delivery system email nor virus notification email. kameelperdza Installation/Configuration 1 2nd October 2009 16:48
Postfix won't receive external email fred!head Server Operation 2 29th June 2008 19:30
Insert emailadresses they only get forwarded to an external email adress? yens General 4 26th July 2007 05:28


All times are GMT +2. The time now is 01:21.


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