motty.cruz:
> Hello,
> Sometimes I want to sent out email from 2nd instance of Postfix bypassing
> scanner, can someone tell me the command to sent email using 2nd instance of
> Postfix?
> I used a while ago and can't remember full command and I'm not very familiar
> with Postfix
>
> # postfix -c /etc/postfix2 -t < message <<-- I can't remember the
> command.
With Postfix 2.3 and later:
sendmail -C /etc/postfix2 -t <message
This requires a full RFC822 etc. message with headers and all.
Wietse
SENDMAIL(1) SENDMAIL(1)
NAME
sendmail - Postfix to Sendmail compatibility interface
....
DESCRIPTION
...
-C config_file
-C config_dir
The path name of the Postfix main.cf file, or of its parent
directory. This information is ignored with Postfix versions
before 2.3.
With all Postfix versions, you can specify a directory pathname
with the MAIL_CONFIG environment variable to override the loca-
tion of configuration files.