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: [email protected]" -I"Cc: " -I"Content-Type: "; echo ":" ) | $SENDMAIL -t [email protected] } how do this using custom rules ? pls help
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: [email protected]" -I"Cc: " -I"Content-Type: " | $SENDMAIL -f "[email protected]" [email protected]' } } ### END FILTER_ID:1