OSEC

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

From: Alex Werner (Alex.Wernerde.cw.com)
Date: Wed May 14 2003 - 08:42:25 CDT


Victor.Duchovnimorganstanley.com wrote:

>On Wed, 14 May 2003, Alex Werner wrote:
>
>
>
>>Hello,
>>i want do switch from sendmail to postfix.
>>In the aliases file i working with includes file. Those files includes
>>"username" or "usernamecyrus.domain.de ". This is needed because the
>>users are able to change the mail delivery from local to imap folder
>>with a webinterface.
>>The problem what i have with postfix is, when i send a mail to an user
>>with local delivery i get the forwarting loop reply.
>>
>>Which changes i have to to at postfix for this to make it run the local
>>delivery?
>>
>>
>>
>
>If I can read your mind to see relevant extracts of your logs and
>configuration information, you can read my mind for the answer to your
>question! :-)
>
>Please provide logs, "postconf -n", any relevant postmaster notices, ...
>Send email to majordomopostfix.org with a body of "help postfix-users" to
>learn how to ask questions on this list.
>
You are right, here are the missing informations:

--[ postconf -n

alias_database = hash:/cw/etc/postfix/aliases
alias_maps = hash:/cw/etc/postfix/aliases
allow_mail_to_commands = alias, forward, include
allow_mail_to_files = alias, forward, include
command_directory = /cw/sbin
config_directory = /cw/etc/postfix
daemon_directory = /cw/libexec/postfix
default_privs = cw-n
home_mailbox = Mailbox
mail_owner = cw
mailbox_command = /cw/bin/procmail -a "$EXTENSION"
message_size_limit = 30220000
mydestination = $myhostname, $mydomain, localhost.$mydomain,
cyrus.ecrc.de, /cw/etc/postfix/local-our-names
mydomain = de.cw.com
myhostname = supermail.de.cw.com
queue_directory = /var/spool/mqueue/postfix
recipient_delimiter = +
relay_domains = $mydestination,
hash:/cw/etc/postfix/access
relayhost = augias.de.cw.com
relocated_maps = hash:/cw/etc/postfix/relocated
setgid_group = cw-r
smtpd_recipient_restrictions =
permit_mynetworks, check_client_access
hash:/cw/etc/postfix/access,
           reject_unauth_destination
strict_rfc821_envelopes = yes
transport_maps = hash:/cw/etc/postfix/transport
virtual_alias_maps = hash:/cw/etc/postfix/virtual
--]

-snip /cw/etc/postfix/aliases:
testmuc: :include:/var/sendmail/www_aliases/var/user_include/testmuc
test.user: testmuc
-snip end

For localdelivery:
# cat /var/sendmail/www_aliases/var/user_include/testmuc
testmuc

(Postfix are right, the recipient in the include file loop back to the
user. But this is needed, because user are able to change the delivery
type with an webinterface.)
exampel to imapbox:
#cat /var/sendmail/www_aliases/var/user_include/testmuc
testmuccyrus.domain.de

log:
May 14 15:08:36 hermes.ecrc.de <info> postfix/qmgr[23037]: 0C97F82:
from=<Alex.Wernerde.cw.com>, size=1216, nrcpt=1 (queue active)
May 14 15:08:36 hermes.ecrc.de <info> postfix/local[28128]: 0C97F82:
to=<testmucdomain.com>, orig_to=<testmucdomain.com>, relay=local,
delay=0, status=bounced (mail forwarding loop for testmucdomain.com)
May 14 15:08:36 hermes.ecrc.de <info> postfix/cleanup[28126]: 56FD384:
message-id=<20030514130836.56FD384domain.com>
May 14 15:08:36 hermes.ecrc.de <info> postfix/qmgr[23037]: 56FD384:
from=<>, size=2868, nrcpt=1 (queue active)

mail reply:

This is the Postfix program at host supermail.domain.com.

I'm sorry to have to inform you that the message returned
below could not be delivered to one or more destinations.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the message returned below.

                        The Postfix program

<testmucdomain.com>: mail forwarding loop for
    testmucdomain.com