IDEA 1 
--------- 

- Remove the 

default_destination_rate_delay = 15s 
line. 

- Instead of adding: 

my.domain.com relayratelimit: 

to the /etc/postfix/transport file adding: 

REGEXP slowratelimit: 

where REGEXP is a regular expression that says: "Everything except whatever 
ends with @my.domain.com" 

IDEA 2 
----------- 

Add the: 
my.domain.com relayratelimit: 
line 
to 
postmap file as I have already tried unsuccessfully (mail loopbacks to myself) 
AND at the same time editing master.cf so that: 

relayratelimit unix - - - - 1 smtp 
-o smtp_fallback_relay= -o syslog_name=slow_queue -o smtp_helo_timeout=3 

it reads: 

relayratelimit unix - - - - 1 local 

Does it make any sense to you any of these two ideas so that I can throttle 
emails sent to the outside world and not throttle emails that are sent to the 
local domain? 

Thank you again for your patience. 

----- Mensaje original -----

> De: "Adrian Gibanel" <adrian.giba...@btactic.com>
> Para: "postfix users" <postfix-users@postfix.org>
> Enviados: Viernes, 15 de Junio 2012 20:17:41
> Asunto: Re: How to handle local mail when throttling?

> After editing:

> /etc/postfix/transport file to add:

> my.domain.com relayratelimit:

> line

> and then running:
> postmap transport
> in /etc/postfix directory?
> And /etc/init.d/postfix reload

> I've noticed these errors:

> Jun 15 20:02:23 ks3095225 postfix/qmgr[32505]: 1EEBA620C3: from=<>,
> size=11454, nrcpt=1 (queue active)
> Jun 15 20:02:23 ks3095225 slow_queue/smtp[606]: 948B47E152:
> to=<t...@my.domain.com>, relay=none, delay=617693,
> delays=617602/91/0/0, dsn=5.4.6, status=bounced (mail for
> my.domain.com loops back to myself)
> Jun 15 20:02:23 ks3095225 postfix/qmgr[32505]: 948B47E152: removed

> As you might remember I've told you that this same setup gave me the:
> "warning: do not list domain in BOTH virtual_mailbox_domains and
> relay_domains" message. I might have been wrong on that point too
> :(.

> So I have reverted this change.

> I copy and paste "postconf -n" output that generates the "loops back
> to myself" problem as requested:

> alias_database = hash:/etc/postfix/aliases
> alias_maps = hash:/etc/postfix/aliases
> append_dot_mydomain = no
> biff = no
> broken_sasl_auth_clients = yes
> config_directory = /etc/postfix
> default_destination_rate_delay = 15s
> delay_warning_time = 4h
> disable_vrfy_command = yes
> inet_interfaces = all
> mailbox_command =
> mailbox_size_limit = 0
> maximal_backoff_time = 8000s
> maximal_queue_lifetime = 3d
> minimal_backoff_time = 300s
> mydestination =
> myhostname = my.domain.com
> mynetworks = 1.2.3.4/32
> myorigin = my.domain.com
> readme_directory = no
> recipient_delimiter = +
> relay_domains =
> relayhost =
> smtp_helo_timeout = 60s
> smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache
> smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
> smtpd_client_restrictions = reject_rbl_client sbl.spamhaus.org,
> reject_rbl_client dnsbl.njabl.org
> smtpd_delay_reject = yes
> smtpd_hard_error_limit = 12
> smtpd_helo_required = yes
> smtpd_helo_restrictions = permit_mynetworks, warn_if_reject
> reject_non_fqdn_hostname, reject_invalid_hostname, permit
> smtpd_recipient_restrictions = reject_unauth_pipelining,
> permit_mynetworks, reject_non_fqdn_recipient,
> reject_unknown_recipient_domain, reject_unauth_destination, permit
> smtpd_data_restrictions = reject_unauth_pipelining
> smtpd_sasl_auth_enable = yes
> smtpd_sasl_local_domain = $myhostname
> smtpd_sender_restrictions = permit_mynetworks, warn_if_reject
> reject_non_fqdn_sender, reject_unknown_sender_domain,
> reject_unauth_pipelining, permit
> smtpd_soft_error_limit = 3
> smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
> smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
> smtpd_tls_session_cache_database =
> btree:${data_directory}/smtpd_scache
> smtpd_use_tls = yes
> transport_maps = hash:/etc/postfix/transport
> unknown_local_recipient_reject_code = 550
> virtual_alias_maps = mysql:/etc/postfix/mysql_alias.cf
> virtual_gid_maps = static:5000
> virtual_mailbox_base = /var/spool/mail/virtual
> virtual_mailbox_domains = mysql:/etc/postfix/mysql_domains.cf
> virtual_mailbox_maps = mysql:/etc/postfix/mysql_mailbox.cf
> virtual_uid_maps = static:5000

> I've already posted master.cf contents, mysql table contents and
> other configurations in previous posts but if you need other
> information or the same ones again please don't hesitate to ask for
> it.

> Just not to forget it my goal is to be able to send with a 15 second
> throttle to every domain except the local domain: my.domain.com.

> Thank you again for your patience.

> ----- Mensaje original -----

> > De: "Noel Jones" <njo...@megan.vbhcs.org>
> > Para: postfix-users@postfix.org
> > Enviados: Viernes, 15 de Junio 2012 17:24:11
> > Asunto: Re: How to handle local mail when throttling?

> > On 6/15/2012 2:58 AM, Adrian Gibanel wrote:
> > > ----- Mensaje original -----
> > >
> > >> De: "Noel Jones" <njo...@megan.vbhcs.org>
> > >> Para: postfix-users@postfix.org
> > >> Enviados: Jueves, 14 de Junio 2012 19:58:23
> > >> Asunto: Re: How to handle local mail when throttling?
> > >
> > >> On 6/14/2012 12:40 PM, Adrian Gibanel wrote:
> > >>> Hummm. In main.cf I have:
> > >>>
> > >>> relayhost =
> > >
> > >> As I said earlier, I'm more interested in the setting of
> > >> relay_domains.
> > >> relayhost has nothing to do with this. The warning clearly says
> > >> relay_domains and virtual_mailbox_domains.
> > >
> > >> My wild guess is that you need to explicitly set relay_domains
> > >> empty, but that might not be right for your setup.
> > >
> > >> # main.cf
> > >> relay_domains =
> > >
> > > I've just checked relay_domains (Sorry I had misread somehow
> > > relayhost) and I have:
> > >
> > > relay_domains =
> > >
> > > so I'm a bit confused on what I am supposed to do according to
> > > your
> > > explanations.
> > >
> > >

> > Please post the output of "postconf -n" and log lines illustrating
> > the problem.

> > -- Noel Jones

-- 

Adrián Gibanel 
I.T. Manager 

+34 675 683 301 
www.btactic.com 

Ens podeu seguir a/Nos podeis seguir en: 

i 

Abans d´imprimir aquest missatge, pensa en el medi ambient. El medi ambient és 
cosa de tothom. / Antes de imprimir el mensaje piensa en el medio ambiente. El 
medio ambiente es cosa de todos. 

AVIS: 
El contingut d'aquest missatge i els seus annexos és confidencial. Si no en sou 
el destinatari, us fem saber que està prohibit utilitzar-lo, divulgar-lo i/o 
copiar-lo sense tenir l'autorització corresponent. Si heu rebut aquest missatge 
per error, us agrairem que ho feu saber immediatament al remitent i que 
procediu a destruir el missatge . 

AVISO: 
El contenido de este mensaje y de sus anexos es confidencial. Si no es el 
destinatario, les hacemos saber que está prohibido utilizarlo, divulgarlo y/o 
copiarlo sin tener la autorización correspondiente. Si han recibido este 
mensaje por error, les agradeceríamos que lo hagan saber inmediatamente al 
remitente y que procedan a destruir el mensaje . 

Reply via email to