Postfix being default MTA of SuSE I hope somebody can help me:
I Mutt and I relay mail to an external mail server
(mail.gminformatique.com)
In /etc/postfix/main.cf: relayhost = mail.gminformatique.com
If I deliver mail to Postfix immediately with Mutt, no problem
In /var/log/mail:
<date> postfix/smtp ... to=, relay=mail.gminformatique.com, status=sent, Message accepted for delivery ...
BUT
Mail are received through fetchmail ==> procmail
If I want to forward messages with Procmail:
:0
* condition
{
:0c
! host@other_dn
:0:
${MAILDIR}/copy
}
I have in /var/log/mail :
<date> postfix/smtp ... to=,
relay=mail.gminformatique.com,delay=1, status=bounced, host
mail.gminformatique.com[**] said:550 This address is not allowed
I thought first I was bounced by the recipient but it is not the case
apprently.
I precise I had two months ago a similar problem with deliveries with
Mutt and I solved the problem in .muttrc with the line:
set envelope_from
It was thus apparently a bad labelling of envelope address
Question are thus
1) what could be wrong?
2) how to set the right envelope address with Postfix (or Procmail?)
like I did in .muttrc with "set envelope_from"
I /etc/postfix/main.cf I have:
myhostname = bartydeux.gminformatique.com
( I first set myhostname = host.house )
mydomain = gminformatique.com
(normally set automatically from $myhostname)
myorigin = myhostname
mydestination = myhostname, localhost.$mydomain
mynetworks_style = host
relayhost = mail.gminformatique.com
disable_dns_lookups = "yes"
( was "no" before )
One of these lines is probable useless because I don't use Postfix as
POP3 server, just as SMTP server ==> relayhost
At work I had no problems with forwarding mails with Procmail/Postfix/Cyrus-IMAP
--
Alain Barthélemy
bartydeux@gminformatique.com
cassandre@gminformatique.com
Voyez mon site web sur:
http://bartydeux.gminformatique.com
Ma généalogie et la petite histoire de Herve et sa région