Re: sending mail using more then one smarthost\relayhost and sasl?

2013-09-12 Thread Eliezer Croitoru
On 09/08/2013 11:47 PM, Jeroen Geilman wrote:
 
 Did you ask any other question than the one about transport(5) I
 answered above ?
 If so, I am afraid it was lost in the noise.
Thanks,

No my setup is working perfectly and I know how to ask questions most of
the time.
If I do ask it do mean I have tried one thing or another.

My main question was regarding transport(5).
I have tried hash:/etc/postfix/transport and it didn't worked while using:
postmap /etc/postfix/transport.
When I have used the same command but with
btree:/etc/postfix/transport
it worked fine.
the main thing I think is that using postmap to run postmap
btree:/etc/postfix/transport
is not the same as postmap /path/to/file but asking the mailing list
is the right thing instead of storming my mind to more then 24 hours of
no sleep.

Hope you understood and can answer my assumption.

Eliezer



Re: sending mail using more then one smarthost\relayhost and sasl?

2013-09-08 Thread Jeroen Geilman

On 09/02/2013 10:56 PM, Eliezer Croitoru wrote:

Hey,

I have a situation with a working postfix install which I am not sure
how to implement.


You're not sure how to implement... a working situation ?


the main problem is that from time to time I get a rejected mail from
a remote system and which I cannot do a thing about.


What kind of mail ? What system ? What does the log say ?
Any information would help, here - but you're providing nothing.


the setup is like this:
Local client(sasl) -(submission 587)Local POSTFIX

the local postfix hosts one\two virtual domains.

the postfix uses an amavisd-new for mail filtering.
The setup works fine and the local POSTFIX is setup with:
smtp sasl auth using a relayhost.
I have a faileover relayhost in postfix but I want another thing.

I want to define that all local\virtual domains will be delivered to the
dovecot mailer.


There is no dovecot mailer; dovecot is an IMAP/LMTP server.
The way to deliver *virtual* domains to dovecot is to use dovecot as 
your *virtual* transport.
Local domains won't be distinguished from one another; use virtual 
domains for that.



and specific outgoing domains will be relayed using specific relay
servers


That's what transport(5) is for.


the current postfix config is:
# cat main.cf |grep -v ^#|grep -v '^$'


Configuration should be shared by providing the output of postconf -nf.
The list welcome message contains clear instructions on how to ask for help.


the master.cf is:
# cat master.cf


THIS is where excluding comments would actually help, although for 
modern versions (2.9+) there is postconf -Mf.




Thanks in advance,


Did you ask any other question than the one about transport(5) I 
answered above ?

If so, I am afraid it was lost in the noise.

--
J.