Networking Forums

Networking Forums > Computer Networking > Linux Networking > verizon dsl mail gateway and postfix on my linux box

Reply
Thread Tools Display Modes

verizon dsl mail gateway and postfix on my linux box

 
 
dongarbage@hotmail.com
Guest
Posts: n/a

 
      10-07-2006, 02:43 PM
Hi,

I have a question about the configuration of Postfix.

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. 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?

Thanks very much for any help,
Don

 
Reply With Quote
 
 
 
 
Bit Twister
Guest
Posts: n/a

 
      10-07-2006, 03:17 PM
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 ********************

 
Reply With Quote
 
Robert Harris
Guest
Posts: n/a

 
      10-07-2006, 03:27 PM
(E-Mail Removed) wrote:
> Hi,
>
> I have a question about the configuration of Postfix.
>
> 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. 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?
>
> Thanks very much for any help,
> Don
>


"man mailname" tells you the story. Normally, if you put, say,
"verizon.net" in /etc/mailname, postfix would assume that
(E-Mail Removed) is local. But you probably set your mail client to
send your outgoing mail direct to your ISP's mail server so it doesn't
matter.

Robert
 
Reply With Quote
 
dongarbage@hotmail.com
Guest
Posts: n/a

 
      10-07-2006, 06:35 PM
Thanks for the help:

This is really what I want:
http://www.postfix.org/STANDARD_CONF...E.html#fantasy

Got it working reading the documentation on postfix.org

 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Hosting Own Postfix Mail Server John Tilly Linux Networking 8 09-14-2007 03:35 AM
mail server behind router port forwarding 25 domain static ip postfix lonux linux konqueror in progress Linux Networking 1 06-22-2007 01:28 PM
Mail Relay through ISP by Postfix * Tong * Linux Networking 6 06-20-2006 03:10 PM
Postfix configuration: Sending mail via external server David Allen Linux Networking 4 02-25-2005 01:44 PM
Maildir/ in /var/spool/mail/$user? (postfix) Nick E. Linux Networking 1 01-30-2004 03:11 AM



1 2 3 4 5 6 7 8 9 10 11