OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Postfix Archives: Re: .forward loops

Re: .forward loops


Subject: Re: .forward loops
From: Wietse Venema (wietseporcupine.org)
Date: Tue Jan 25 2000 - 06:30:30 CST


I routinely test with .forward files containing

    username

or

    usernamelocalhost

Not a problem. The \ prefix forces mailbox delivery and can't loop.

However, "mail forwarding loop" means the mail with delivered-to
is delivered again to the same address, so you *do* have a genuine
mailer loop.

        Wietse

Liviu Daia:
> I'm trying to achieve the moral equivalent of sendmail's
>
> \user, usersome.other.address
>
> in .forward files, and the only result I've managed to get so far
> is a bunch of bounced messages because of "mail forwarding loop for
> useraddres". Is this supposed to work these days? If yes, what
> am I missing? Configuration details included after signature; more
> information available upon request.
>
> Regards,
>
> Liviu Daia
>
>
>
> ~user/.forward:
> ===============
>
> user, usersome.other.address
>
>
> postconf -n:
> ============
>
> alias_database = hash:$config_directory/aliases
> alias_maps = hash:$config_directory/aliases
> allow_percent_hack = no
> allow_untrusted_routing = no
> biff = no
> default_privs = nobody
> delay_warning_time = 4
> disable_vrfy_command = yes
> header_checks = pcre:$config_directory/access_hdr
> local_destination_concurrency_limit = 2
> local_recipient_maps = $relocated_maps $alias_maps unix:passwd.byname
> mail_owner = postfix
> maps_rbl_domains = rbl.maps.vix.com, dul.maps.vix.com
> mydestination = $myhostname, localhost.$mydomain
> mydomain = imar.ro
> myhostname = pompeiu.imar.ro
> mynetworks = 127.0.0.0/8
> 193.226.4.0/24
> 192.129.3.38
> 192.129.3.41
> myorigin = $mydomain
> notify_classes = resource, software
> prepend_delivered_header = forward
> program_directory = /usr/postfix
> qmgr_fudge_factor = 20
> recipient_canonical_maps = hash:$config_directory/recipient_canonical
> recipient_delimiter = +
> relay_domains = $mydestination
> $virtual_maps
> dial1-imar.bucharest.roedu.net
> dial2-imar.bucharest.roedu.net
> relocated_maps = hash:$config_directory/relocated
> sender_canonical_maps = hash:$config_directory/sender_canonical
> smtp_skip_4xx_greeting = yes
> smtpd_client_restrictions =
> smtpd_etrn_restrictions = permit_mynetworks, reject
> smtpd_helo_required = yes
> smtpd_helo_restrictions = permit_mynetworks
> permit_naked_ip_address
> reject_invalid_hostname
> smtpd_recipient_restrictions =
> check_recipient_access regexp:/etc/postfix/access_recipient
> check_client_access regexp:/etc/postfix/access_client
> check_sender_access regexp:/etc/postfix/access_sender
> check_sender_access regexp:/etc/postfix/access_client
> permit_mynetworks
> reject_non_fqdn_sender
> reject_non_fqdn_recipient
> reject_unknown_recipient_domain
> reject_unauth_pipelining
> reject_unauth_destination
> reject_maps_rbl
> smtpd_sender_restrictions =
> transport_maps = hash:$config_directory/transport
> unknown_address_reject_code = 550
> unknown_client_reject_code = 550
> virtual_maps = hash:$config_directory/virtual
>
>
> /etc/postfix/virtual:
> =====================
>
> First.Lastimar.ro userpompeiu.imar.ro
> userimar.ro userpompeiu.imar.ro
>
>
> relevant log entries:
> =====================
>
> Jan 25 10:05:37 pompeiu postfix/local[2737]: C8B7618C268: to=<userpompeiu.imar.ro>, relay=local, delay=0, status=sent (forwarded as DA78F18C26D)
> Jan 25 10:05:38 pompeiu postfix/local[2737]: DA78F18C26D: to=<userpompeiu.imar.ro>, relay=local, delay=0, status=bounced (mail forwarding loop for userpompeiu.imar.ro)
>
>
> --
> Dr. Liviu Daia e-mail: Liviu.Daiaimar.ro
> Institute of Mathematics web page: http://www.imar.ro/~daia
> of the Romanian Academy PGP key: http://www.imar.ro/~daia/daia.asc
>
>
>



This archive was generated by hypermail 2b27 : Tue Jan 25 2000 - 13:35:13 CST