On Sat, 18 Jun 2005 22:07:00 +0200, Sven-Thorsten Fahrbach wrote:
> Okay, I'm nearly dispairing over the pine setup to use with my
> postfix configuration. No matter what I do I get an error
> message from the smtp server (mail.gmx.net) that the user does
> not exist. Let me brief you on the details of my configuration:
Guessing your relay host wants the name to be a vaild isp email address.
>
> e-mail address: (E-Mail Removed)
> gmx demands that the login name be the full e-mail address, i.e.
> login name: (E-Mail Removed)
> login name on my system: svetho
My solution used canonical files to munge the headers.
Warning: it works and what you see was from me kludging around trying
to make it work. I keep telling myself I will go back to the docs and
straighten them out.
http://www.postfix.org/basic.html
I have a lan behind a linux firewall box,
postfix running on all nodes. Firewall box munges headers for anything
heading to the internet.
---------------------------------------------------------------
/etc/postfix/main.cf snippet
# my appended changes to main.cf for my WAN node
myorigin = comcast.net
mydomain = home.invalid
mydestination = $myhostname, localhost.$mydomain, localhost
mynetworks = 192.168.2.0/24, 127.0.0.0/8
relayhost = smtp.comcast.net
relay_domains = $mydomain
inet_interfaces = $myhostname, localhost
smtp_host_lookup = dns, native
#local box users
virtual_alias_maps = hash:/etc/postfix/virtual
# swap linux users into my ISP eamil users
# swap out From: values
sender_canonical_maps = hash:/etc/postfix/canonical_sender
# swap out To: values example root
recipient_canonical_maps = hash:/etc/postfix/canonical_recipient
--------------------------------------------------------------------------
canonical_sender snippet
(E-Mail Removed)lid
(E-Mail Removed)
--------------------------------------------------------------------------
canonical_recipient snippet
root
(E-Mail Removed)lid
(E-Mail Removed) (E-Mail Removed)lid
--------------------------------------------------------------------------
virtual snippet
bittwsiter
(E-Mail Removed)lid
root
(E-Mail Removed)lid
--------------------------------------------------------------------------
aliases change
# Person who should get root's mail. This alias
# must exist.
# CHANGE THIS LINE to an account of a HUMAN
root:
(E-Mail Removed)lid
Database files were generated with
postalias aliases
postmap canonical_sender
postmap canonical_recipient
postmap virtual