PDA

View Full Version : ISPConfig 3 - Custom Rules question


Vilk
25th June 2009, 17:49
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:

: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, 13:34
problem resolve :)

this is how i do this:

### 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, 18:33
Hi Vilk,

which mobile-operator do you use?