Quantcast

Example of sender_dependent_relayhost_maps

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Example of sender_dependent_relayhost_maps

Ramprasad-5
I have in my postfix main.cf
-------
sender_dependent_relayhost_maps = hash:/etc/postfix/sender_transport
-------



and in this file
---------
[hidden email]       smtp:[192.168.2.105]
----------


This format is not correct apparently ,  because I am getting an error
when sending a mail


>From my verbose logs I can see
-----------
n  9 20:07:25 location postfix/smtp[15036]: smtp socket: wanted
attribute: notify_flags
Jun  9 20:07:25 location postfix/smtp[15036]: input attribute name:
notify_flags
Jun  9 20:07:25 location postfix/smtp[15036]: input attribute value: 0
Jun  9 20:07:25 location postfix/smtp[15036]: smtp socket: wanted
attribute: (list terminator)
Jun  9 20:07:25 location postfix/smtp[15036]: input attribute name:
(end)
Jun  9 20:07:25 location postfix/smtp[15036]: deliver_request_get: file
active/90D7D50403
Jun  9 20:07:25 location postfix/smtp[15036]: deliver_message: from
[hidden email]
Jun  9 20:07:25 location postfix/smtp[15036]: smtp_parse_destination:
smtp:[192.168.2.105] smtp
Jun  9 20:07:25 location postfix/smtp[15036]: fatal: unknown service:
[192.168.2.105]/tcp
Jun  9 20:07:26 location postfix/qmgr[15025]: warning: private/smtp
socket: malformed response
Jun  9 20:07:26 location postfix/qmgr[15025]: warning: transport smtp
failure -- see a previous warning/fatal/panic logfile record for the
problem description
Jun  9 20:07:26 location postfix/master[15024]: warning:
process /usr/libexec/postfix/smtp pid 15036 exit status 1
Jun  9 20:07:26 location postfix/master[15024]:
warning: /usr/libexec/postfix/smtp: bad command startup -- throttling

-----------------




Can someone please give me how I configure
sender_dependent_relayhost_maps

Thanks
Ram


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Example of sender_dependent_relayhost_maps

Wietse Venema
ram:

> I have in my postfix main.cf
> -------
> sender_dependent_relayhost_maps = hash:/etc/postfix/sender_transport
> -------
>
> and in this file
> ---------
> [hidden email]       smtp:[192.168.2.105]
> ----------
>
> This format is not correct apparently ,  because I am getting an error
> when sending a mail
>

The lookup result has the same syntax as the relayhost configuration
parameter.

        Wietse
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Example of sender_dependent_relayhost_maps

Ramprasad-5
On Mon, 2008-06-09 at 10:49 -0400, Wietse Venema wrote:

> ram:
> > I have in my postfix main.cf
> > -------
> > sender_dependent_relayhost_maps = hash:/etc/postfix/sender_transport
> > -------
> >
> > and in this file
> > ---------
> > [hidden email]       smtp:[192.168.2.105]
> > ----------


Ok thanks , got it


I have another question , Can I make sender_dependent_relayhost_maps
override the transport_maps


Thanks
Ram



Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Example of sender_dependent_relayhost_maps

Victor Duchovni
On Mon, Jun 09, 2008 at 09:30:06PM +0530, ram wrote:

> On Mon, 2008-06-09 at 10:49 -0400, Wietse Venema wrote:
> > ram:
> > > I have in my postfix main.cf
> > > -------
> > > sender_dependent_relayhost_maps = hash:/etc/postfix/sender_transport
> > > -------
> > >
> > > and in this file
> > > ---------
> > > [hidden email]       smtp:[192.168.2.105]
> > > ----------
>
>
> Ok thanks , got it
>
>
> I have another question , Can I make sender_dependent_relayhost_maps
> override the transport_maps

No, this is a bad idea, because local recipients and remote recipients
should not generally be sent to the same place. If you really want force
traffic from a particular sender to the same place, regardless of the
recipient address, and the mail arrives via SMTP, you may be able to
use a "FILTER" rule in an access table.

--
        Viktor.

Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.

To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[hidden email]?body=unsubscribe%20postfix-users>

If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.
Loading...