On 7 Oct 2006 07:43:17 -0700,
(E-Mail Removed) wrote:
> Hi,
>
> I have a question about the configuration of Postfix.
Have you looked around on
http://www.postfix.org/ for documentation/FAQ
> I'm running Ubuntu 6.06 and connected to the internet with Verizon DSL.
> I just installed Postfix and I'm having an issue with mailing from my
> machine. In /etc/mailname, I put "verizon.net". I assume this means
> that I'm using the Verizon email gateway.
Hmmm, a quick _man postfix_ does not mention /etc/mailname as a
configuration file.
> When I send email to an
> external email account, it works fine. The email looks like it was sent
> from a verizon.net account (e.g. (E-Mail Removed)). However, when I
> send email to a local account (e.g. "mail localuser"), it is sent to
> (E-Mail Removed). I really want the local email sent to the local
> account without appending "@verizon.net". Why is "@verizon.net" being
> appended to local emails? How do I make it so that "@verizon.net" is
> not appended?
I would add some keywords to the bottom of /etc/postfix/main.cf
to make postfix do what I want.
I assume you did update the bottom of aliases so that your user account would
receive root email.
$ tail -11 /etc/postfix/aliases | head -4
I run Mandriva Linux and cannot say what the postfix defaults are for
Ubuntu and I do not have /etc/mailname
I used virtual to tag local delivery, and copied canonical to canonical_sender
and canonical_recipient. With those and generic, I munge my body/header
from/to values to look like they come from my yahoo/hotmail accounts.
$ hostname
fw.home.invalid
$ tail -28 /etc/postfix/main.cf
# my appended changes to main.cf for my WAN node
default_destination_concurrency_limit = 1
mydestination = $myhostname localhost.$mydomain localhost $mydomain
mynetworks = 192.168.2.0/28, 127.0.0.0/8
relayhost = [smtp.comcast.net]
relay_domains =
inet_interfaces = all
unknown_local_recipient_reject_code = 550
smtp_host_lookup = dns, native
# local box users
virtual_alias_maps = hash:/etc/postfix/virtual
# Receiving: swap linux users into my ISP email users
# in header (from

value
sender_canonical_maps = hash:/etc/postfix/canonical_sender
# Receiving: swap out header (to

value example root
# recipient_canonical_maps = hash:/etc/postfix/canonical_recipient
# Sending: swap out email addresses that appear inside messages (From

smtp_generic_maps = hash:/etc/postfix/generic
#****** end main.cf ****************
$ hostname
wb.home.invalid
$ tail /etc/postfix/main.cf
# my changes appened to main.cf for my LAN nodes
myorigin = $myhostname
relay_domains =
relayhost = [fw.home.invalid]
inet_interfaces = $myhostname, localhost
unknown_local_recipient_reject_code = 550
smtp_host_lookup = dns, native
#********************** end main.cf ********************