EnderUNIX Team.


EnderUNIX tips

Mail to My Friend , Home Page

[ qmail ]

"How to use remote delivery instead of local delivery ?" - Emre Erkunt - (2006-05-02 17:31:32)   [8101]

Scenario is, you have 2 mail servers, you're using one of them for POP3, and the other for SMTP.

You tried to send a mail via SMTP server, and it delivered to local mailbox. But you need to deliver it to POP3 server.

Then,

~# cd /var/qmail/bin
~# mv qmail-local backup.qmail-local

And, set your qmail file like this ;

#!/bin/bash
cat | /var/qmail/bin/qmail-remote ${2} ${8} ${6}@${7}

Set your qmail-local file`s permissions;

~# chmod 755 qmail-local
~# chown root.qmail qmail-local

That`s all.

Mail to My Friend , Home Page