Re: smtp_sasl_password_maps round robbin

2021-08-05 Thread Wietse Venema
Adam Barnett:
> Hi,
> 
> When was pipemap and inline introduced?

Six years ago (with Postfix 3.0, which is already out of support
since February 2019).

Wietse

>  I am getting these error messages
> 
>  postfix/smtp[12689]: error: unsupported dictionary type: pipemap
>  postfix/smtp[12689]: error: unsupported dictionary type: inline
> postfix/smtp[12689]: fatal: open dictionary: expecting "type:name" form
> instead of "{"
> 
> I am running postfix-2.10.1-7.el7.x86_64 and the output of postconf -m
> shows
> 
> btree
> cidr
> environ
> fail
> hash
> internal
> ldap
> memcache
> mysql
> nis
> pcre
> proxy
> regexp
> socketmap
> static
> tcp
> texthash
> unix
> 
> Thanks
> Adam
> 
> 
> On Wed, 4 Aug 2021 at 19:58, Wietse Venema  wrote:
> 
> > Adam Barnett:
> > > Hi,
> > >
> > > I have setting upa Postfix relay to send from my iterenal network certain
> > > mail to our google workspace account
> > >
> > > I have it all set up and working but i saw in the google docs there is a
> > > limit to how much mail can be sent per user per day.
> > > In smtp_sasl_password_maps could i have more then one account for the
> > same
> > > relay so that gets picked randomly, like round robbin
> > >
> > > i.e
> > > [smtp.gmail.com]:587 f...@bar.com:bar
> > > [smtp.gmail.com]:587 f...@bar.com:bar
> > > [smtp.gmail.com]:587 f...@bar.com:bar
> > >
> > > This way i would never hit any sending limit
> >
> > Yes, this is possible. But it may not work if they require
> > that the MAIL FROM address matches the SASL login.
> >
> > main.cf:
> > smtp_sasl_password_maps = pipemap:{
> > inline:{ { [smtp.gmail.com]:587 = whatever } },
> > randmap:{ f...@bar.com:bar, f...@bar.com:bar, ... } } }
> >
> > The pipemap, inline, and randmap pseudmaps are defined in
> > http://www.postfix.org/postconf.1.html
> >
> > Wietse
> >


Re: smtp_sasl_password_maps round robbin

2021-08-05 Thread Adam Barnett
Hi,

When was pipemap and inline introduced?
 I am getting these error messages

 postfix/smtp[12689]: error: unsupported dictionary type: pipemap
 postfix/smtp[12689]: error: unsupported dictionary type: inline
postfix/smtp[12689]: fatal: open dictionary: expecting "type:name" form
instead of "{"

I am running postfix-2.10.1-7.el7.x86_64 and the output of postconf -m
shows

btree
cidr
environ
fail
hash
internal
ldap
memcache
mysql
nis
pcre
proxy
regexp
socketmap
static
tcp
texthash
unix

Thanks
Adam


On Wed, 4 Aug 2021 at 19:58, Wietse Venema  wrote:

> Adam Barnett:
> > Hi,
> >
> > I have setting upa Postfix relay to send from my iterenal network certain
> > mail to our google workspace account
> >
> > I have it all set up and working but i saw in the google docs there is a
> > limit to how much mail can be sent per user per day.
> > In smtp_sasl_password_maps could i have more then one account for the
> same
> > relay so that gets picked randomly, like round robbin
> >
> > i.e
> > [smtp.gmail.com]:587 f...@bar.com:bar
> > [smtp.gmail.com]:587 f...@bar.com:bar
> > [smtp.gmail.com]:587 f...@bar.com:bar
> >
> > This way i would never hit any sending limit
>
> Yes, this is possible. But it may not work if they require
> that the MAIL FROM address matches the SASL login.
>
> main.cf:
> smtp_sasl_password_maps = pipemap:{
> inline:{ { [smtp.gmail.com]:587 = whatever } },
> randmap:{ f...@bar.com:bar, f...@bar.com:bar, ... } } }
>
> The pipemap, inline, and randmap pseudmaps are defined in
> http://www.postfix.org/postconf.1.html
>
> Wietse
>


Re: smtp_sasl_password_maps round robbin

2021-08-04 Thread Wietse Venema
Adam Barnett:
> Hi,
> 
> I have setting upa Postfix relay to send from my iterenal network certain
> mail to our google workspace account
> 
> I have it all set up and working but i saw in the google docs there is a
> limit to how much mail can be sent per user per day.
> In smtp_sasl_password_maps could i have more then one account for the same
> relay so that gets picked randomly, like round robbin
> 
> i.e
> [smtp.gmail.com]:587 f...@bar.com:bar
> [smtp.gmail.com]:587 f...@bar.com:bar
> [smtp.gmail.com]:587 f...@bar.com:bar
> 
> This way i would never hit any sending limit

Yes, this is possible. But it may not work if they require
that the MAIL FROM address matches the SASL login.

main.cf:
smtp_sasl_password_maps = pipemap:{
inline:{ { [smtp.gmail.com]:587 = whatever } },
randmap:{ f...@bar.com:bar, f...@bar.com:bar, ... } } }

The pipemap, inline, and randmap pseudmaps are defined in 
http://www.postfix.org/postconf.1.html

Wietse


Re: smtp_sasl_password_maps round robbin

2021-08-04 Thread Adam Barnett
We are migrating from our old legacy server to google.
Instead of having to configure the old server ( which is a pain to update)
i was going to reconfigure our linux hosts postfix to send to theis new
relay that i have setup, i can then relay certain senders to the old server
( if needed) and everything else to google. This is only for internal ->
gmail mail which is mainly for scripts/programs using sendmail/mail cli

Thanks
Adam

On Wed, 4 Aug 2021 at 16:43,  wrote:

> > I have setting upa Postfix relay to send from my iterenal network
> > certain mail to our google workspace account
>
> Im fairly inexperienced and curious... If you have your own email
> servers why would you relay through google? Can't your email servers
> just send the emails themselves? What are the issues or drawbacks
> preventing that? What should i be aware of in setting up my own email
> server?
>


Re: smtp_sasl_password_maps round robbin

2021-08-04 Thread postfix
I have setting upa Postfix relay to send from my iterenal network 
certain mail to our google workspace account


Im fairly inexperienced and curious... If you have your own email 
servers why would you relay through google? Can't your email servers 
just send the emails themselves? What are the issues or drawbacks 
preventing that? What should i be aware of in setting up my own email 
server?


Re: smtp_sasl_password_maps round robbin

2021-08-04 Thread postfix
I have setting upa Postfix relay to send from my iterenal network 
certain mail to our google workspace account


I have it all set up and working but i saw in the google docs there is 
a limit to how much mail can be sent per user per day.  In 
smtp_sasl_password_maps could i have more then one account for the same 
relay so that gets picked randomly, like round robbin

[smtp.gmail.com]:587 f...@bar.com:bar
[smtp.gmail.com]:587 f...@bar.com:bar
[smtp.gmail.com]:587 f...@bar.com:bar

This way i would never hit any sending limit



This reminds me how everyday im seeing spammers send emails using gmail 
accounts because gmail wont be rejected by RBL list.

I imagine a spammer would also LOVE to know the answer to this question.