| Welcome to the Zimbra :: Forums! | |
Welcome, if you would like to post a comment please register.
We also encourage you to explore all things Zimbra with our team and members of the community.
|  | 
11-12-2007, 09:19 AM
| | Intermediate Member | |
Posts: 19
| | When an Automatic Forward action is perform? I am interested in knowing when there is realized the action to order a message of automatic form after a user provision a zimbraMailForwardingAddress.
I have looked through the forums and the wiki and can't find any topics related to this so maybe someone could help me out.
Only, I've read at User Alias Mapping and Mail Transport with Postfix & LDAP - Zimbra :: Wiki
that the Postfix application looks in LDAP for an entry called zimbraMailForwardingAddress.
My problem is the following one: - user1 assign to zimbraMailForwardingAddress a value user2@erroneousDomain.com
- user2 sends an email to user1
- user1 receives the email
- user2 receives an "Undelivered Mail Returned to Sender" because user1 has mal-formed his automatic forwarding address.
I wonder if it can be possible that user2 was avoiding to know this mistake and was notified to the user1.
Zimbra Server knows when an email is forwarded to another one or only is known by Postfix?
Can I generate a log saying that a message is being automatic forwarded?
Thanks in advance | 
11-16-2007, 01:18 AM
| | Intermediate Member | |
Posts: 19
| | When an Automatic Forward action is perform? Hi all,
Can someone help me?
I just need to know if i can log all automatic forwarded messages when they are sended by postfix app ?
I believe that I have quite controlled in the zimbraServer, but not when acts postfix.
Thanks | 
11-16-2007, 08:52 AM
| | | Have you checked /var/log/zimbra.log or mail.log? They record virtually every action of the mail transport, and so with grep I would think you could find what you are looking for. If you need to get a report on a regular basis, write a script to grep the appropriate stuff out of those logs and send it to a new file or even an email to yourself. | 
11-19-2007, 04:30 AM
| | Intermediate Member | |
Posts: 19
| | thanks dwmtractor, I have just verified the file "mail.info" and i've found next after sending email: - senderUser sends a message to receiverOkUser
- receiverOkUser has enabled Address to forward mail to: to automaticForwardedKoUser@externalDomain.com
- An error occurs when a message is sent to automaticForwardedKoUser
Quote:
Nov 19 08:35:59 zimbraServer postfix/qmgr[19768]: 13F882C036:from=<senderUser@domain.com>, size=1096, nrcpt=2 (queue active)
Nov 19 08:36:04 zimbraServer zmtomcatmgr[2486]: status requested
Nov 19 08:36:04 zimbraServer zmtomcatmgr[2486]: status OK
Nov 19 08:36:11 zimbraServer postfix/smtpd[2560]: connect from localhost[127.0.0.1]
Nov 19 08:36:11 zimbraServer postfix/smtpd[2560]: 9CBB12C037:client=localhost[127.0.0.1]
Nov 19 08:36:11 zimbraServer postfix/cleanup[2356]: 9CBB12C037:message-id=<6882443.01195457755242.JavaMail.root@zimbraSer ver>
Nov 19 08:36:11 zimbraServer postfix/smtpd[2560]: disconnect from localhost[127.0.0.1]
Nov 19 08:36:11 zimbraServer postfix/qmgr[19768]: 9CBB12C037:from=<senderUser@domain.com>, size=1693, nrcpt=2 (queue active)
Nov 19 08:36:12 zimbraServer postfix/smtp[2357]: 13F882C036:to=<receiverOkUser@domain.com>, relay=127.0.0.1[127.0.0.1], delay=13,status=sent (250 Ok: queued as 9CBB12C037)
Nov 19 08:36:12 zimbraServer postfix/smtp[2357]: 13F882C036:to=<automaticForwardedKoUser@externalDo main.com>,orig_to=<receiverOkUser@domain.com>, relay=127.0.0.1[127.0.0.1], delay=13,status=sent (250 Ok: queued as 9CBB12C037)
Nov 19 08:36:12 zimbraServer postfix/qmgr[19768]: 13F882C036: removed
Nov 19 08:36:12 zimbraServer postfix/smtp[2561]: 9CBB12C037:to=<automaticForwardedKoUser@externalDo main.com>, relay=none, delay=1,status=bounced (Host or domain name not found. Name service error for name=domain.com1 type=A: Host not found)
Nov 19 08:36:12 zimbraServer postfix/lmtp[2562]: 9CBB12C037:to=<receiverOkUser@domain.com>, relay=domain.com[192.168.2.55], delay=1,status=sent (250 2.1.5 OK)
Nov 19 08:36:12 zimbraServer postfix/cleanup[2356]: 9D7992C038:message-id=<20071119073612.9D7992C038@domain.com>
Nov 19 08:36:12 zimbraServer postfix/qmgr[19768]: 9D7992C038: from=<>,size=3756, nrcpt=1 (queue active)
Nov 19 08:36:12 zimbraServer postfix/qmgr[19768]: 9CBB12C037: removed
Nov 19 08:36:13 zimbraServer postfix/lmtp[2562]: 9D7992C038:to=<senderUser@domain.com>, relay=domain.com[192.168.2.55], delay=1,status=sent (250 2.1.5 OK)
Nov 19 08:36:13 zimbraServer postfix/qmgr[19768]: 9D7992C038: removed | The only reference from a forwarded message is orig_to ?
Is there a way from ZimbraServer to control this behaviour without having to generate a external script ?
By way of curiosity, the last two records indicate that a message to senderUser is sent telling that there has been an "internal" mistake sending a message to automaticForwardedKoUser.
But in my modest opinion, why senderUser has to know this error?
Would not it be better to report to receiverOkUser ?
I wait to have expressed correctly and in an intelligible way.
Thanks | 
11-19-2007, 04:47 AM
| | Zimbra Consultant & Moderator | |
Posts: 20,314
| | Quote:
Originally Posted by riravedra Nov 19 08:36:12 zimbraServer postfix/smtp[2561]: 9CBB12C037:to=<automaticForwardedKoUser@externalDo main.com>, relay=none, delay=1,status=bounced (Host or domain name not found. Name service error for name=domain.com1 type=A: Host not found) | Doesn't that error tell you what the real problem is?
__________________
Regards
Bill
| 
11-19-2007, 07:51 AM
| | Intermediate Member | |
Posts: 19
| | Yes, I know the problem, because I needed to generate an example where there is a mistake to show you what happens when it occurs.
I am not interested in the error itself. Rather, i'm interested in the fact not alert the senderUser -originally who send the first email-, to warn of error receiverOkUser -that enabled an automatic redirect to an external account-. | 
11-19-2007, 08:54 AM
| | | Quote:
Originally Posted by riravedra Yes, I know the problem, because I needed to generate an example where there is a mistake to show you what happens when it occurs.
I am not interested in the error itself. Rather, i'm interested in the fact not alert the senderUser -originally who send the first email-, to warn of error receiverOkUser -that enabled an automatic redirect to an external account-. | Hi,
I am also looking for the same, as only the original recipient should get NDR not the original sender. From the original sender view, message is already delivered to the recipient. Is there a way we can send all NDRs to an account instead of sending to the sender or is there a way to disable sending NDR in postfix? As a wish list, can Zimbra have an option to create a mail filter to forward mails based on subject or address to another address.
Zimbra rocks...
Rgds, *** Great day to all *** Registered linux user : #453287 (hxxp://counter.li.org/)
Last edited by amsin; 11-19-2007 at 09:34 AM..
| | Thread Tools | Search this Thread | | | | | Display Modes | Linear Mode | | Why Join? Registering let's you ask questions, makes it easier to search, displays any files attached to posts, and notifies you about replies.  |