HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials

HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials (http://www.howtoforge.com/forums/index.php)
-   Installation/Configuration (http://www.howtoforge.com/forums/forumdisplay.php?f=27)
-   -   ISPConfig 3 - Custom Rules question (http://www.howtoforge.com/forums/showthread.php?t=37002)

Vilk 25th June 2009 16:49

ISPConfig 3 - Custom Rules question
 
Hello !

I just migrating my old mail server to new one on ubuntu and ispconfig 3 everything works fine but i got small problem. In old mail serwer i use procmail to inform some users by sms about new email, this works this way i got special email address from my mobile operator for each user and when i send email to this address user get subject in mobile, my procmail looks this way:
Code:

:0
{

:0 ch
* ^From:.*(@my.email.server.com)
| (formail -I"To: xxxx@text.mobile.operator.com" -I"Cc: " -I"Content-Type: "; echo ":" ) | $SENDMAIL -t xxxx@text.mobile.operator.com
}

how do this using custom rules ?
pls help

Vilk 26th June 2009 12:34

problem resolve :)

this is how i do this:
Code:

### BEGIN FILTER_ID:1
if (/^From:.*myserver\.com/:h)
{
exception {
cc '| /usr/bin/formail -X "" -I"To: xxxx@text.mobile.operator.com" -I"Cc: " -I"Content-Type: " | $SENDMAIL -f "myaddress@myserver.com" xxxx@text.mobile.operator.com'
}
}
### END FILTER_ID:1


xxfog 17th April 2010 17:33

Hi Vilk,

which mobile-operator do you use?


All times are GMT +2. The time now is 16:10.

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