Сорри за форматирование
Без программы mail
telnet localhost 25
helo localhost
mail from: user1@host.net
rcpt to: user2@host.net
data
Subject: test
test
.
quit
Ответы сервера не показаны
Не знаю насчет именно postfix, по идее конечно любой почтовик может заменить адрес отправителя. Но гораздо легче заменить адрес получателя. Т. е. ты отправляешь письма с адреса сервера и этому адресу назначаешь алиас. Вся приходящая почта на адрес сервера будет отослана на алиас.
Сноси, давай и побыстрее.
man sendmail
SENDMAIL(1)
NAME
sendmail - Postfix to Sendmail compatibility interface
-f sender
Set the envelope sender address. This is the address where
delivery problems are sent to. With Postfix versions before 2.1,
the Errors-To: message header overrides the error return
address.
-i When reading a message from standard input, don't treat a line
with only a . character as the end of input.
-t Extract recipients from message headers. These are added to any
recipients specified on the command line.
With Postfix versions prior to 2.1, this option requires that no
recipient addresses are specified on the command line.