Local vs. relayed mail

View: New views
2 Messages — Rating Filter:   Alert me  

Local vs. relayed mail

by Todd A. Jacobs :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I'm currrently using Postfix on a pair of machines, one of which is a
smarthost for the other. If I do something like this on the internal
machines:

    mail -s Test nospam < /dev/null

Then the mail is delivered locally, rather than through the smarthost.
If I manually append the domain, though:

    mail -s Test nospam@... < /dev/null

then everything works just fine. Is it possible to force smarthost
delivery for usernames that exist on both machines?

--
"Oh, look: rocks!"
        -- Doctor Who, "Destiny of the Daleks"


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: Local vs. relayed mail

by Mike Bird-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue November 10 2009 12:53:06 Todd A. Jacobs wrote:

> I'm currrently using Postfix on a pair of machines, one of which is a
> smarthost for the other. If I do something like this on the internal
> machines:
>
>     mail -s Test nospam < /dev/null
>
> Then the mail is delivered locally, rather than through the smarthost.
> If I manually append the domain, though:
>
>     mail -s Test nospam@... < /dev/null
>
> then everything works just fine. Is it possible to force smarthost
> delivery for usernames that exist on both machines?

What do you have in your main.cf?  This works for me:

myorigin = yosemite.net
inet_interfaces = loopback-only
mynetworks = 127.0.0.0/8
relayhost = mx1.yosemite.net
inet_protocols = ipv4

--Mike Bird


--
To UNSUBSCRIBE, email to debian-user-REQUEST@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...