Edit bounced message by postfix and dovecot

2013-12-02 Thread pgala
Hi,

I want edit default bounced message witch is bounced by Mail Delivered
System. I edit and configure bounce.cf but to my text automatically is
adding smtp transcritpion. Below example:

"My text.

 was automatically rejected:
My dovecot text  
Reporting-UA: localhost.localdomain; Dovecot Mail Delivery Agent
Final-Recipient: rfc822; us...@ointranet.test
Original-Message-ID: <529c46af.4090...@intranet.test>
Disposition: automatic-action/MDN-sent-automatically; deleted
ForwardedMessage.eml
Temat:
test
Nadawca:
user Intranet 
Data:
2013-12-02 09:37
Adresat:
us...@intranet.test
"
how can i edit it? i want only
"my dovecot text".




--
View this message in context: 
http://postfix.1071664.n5.nabble.com/Edit-bounced-message-by-postfix-and-dovecot-tp63512.html
Sent from the Postfix Users mailing list archive at Nabble.com.


RE: Edit bounced message by postfix and dovecot

2013-12-03 Thread pgala
I need it to internal mail system which will be used by Liferay so I want
hide inform about mail server.

 

From: Kris Deugau [via Postfix]
[mailto:ml-node+s1071664n63521...@n5.nabble.com] 
Sent: Monday, December 02, 2013 4:58 PM
To: pgala
Subject: Re: Edit bounced message by postfix and dovecot

 

pgala wrote: 


> Hi, 
> 
> I want edit default bounced message witch is bounced by Mail Delivered 
> System. I edit and configure bounce.cf but to my text automatically is 
> adding smtp transcritpion. Below example: 
> 
> "My text. 
> 
> <[hidden email]: host 127.0.0.1[127.0.0.1] said: 553 5.7.1 
>  [hidden email]: Sender address rejected: not owned by user 
>  [hidden email] (in reply to RCPT TO command) 
> " 
> 
> i want remove from this message information about error. I want only 
> "My text". 


Please don't.  Troubleshooting mail problems is already hard enough 
without someone going around removing what little information can be 
seen from outside. 

-kgd 



  _  

If you reply to this email, your message will be added to the discussion
below:

http://postfix.1071664.n5.nabble.com/Edit-bounced-message-by-postfix-and-dov
ecot-tp63512p63521.html 

To unsubscribe from Edit bounced message by postfix and dovecot, click here
<http://postfix.1071664.n5.nabble.com/template/NamlServlet.jtp?macro=unsubsc
ribe_by_code&node=63512&code=cGdhbGFAb3NwYXJ0bmVyLnBsfDYzNTEyfC02OTQyMzQ5OQ=
=> .
 
<http://postfix.1071664.n5.nabble.com/template/NamlServlet.jtp?macro=macro_v
iewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.Basi
cNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template
.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_
emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml> NAML 





--
View this message in context: 
http://postfix.1071664.n5.nabble.com/Edit-bounced-message-by-postfix-and-dovecot-tp63512p63540.html
Sent from the Postfix Users mailing list archive at Nabble.com.


relay mail - smtp_generic_maps

2014-01-08 Thread pgala
Hi,

i want be able to relay mail sent by all of postfix server users. I try do
it by smtp_generic_maps.
My generic file is:
"
/.*/myrelaym...@domain.com
"

my problem is that rewriting is also recipient addres so the mails is send
to myrelaym...@domain.com.

I know that i can set generic file:
"
@domain1local   myrelaydom...@domain.com
@domain2local   myrelaydom...@domain.com
"
and everything is fine, but i want be able to add new domain withouth
modification generic file. How can i do it?



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/relay-mail-smtp-generic-maps-tp64189.html
Sent from the Postfix Users mailing list archive at Nabble.com.


Re: relay mail - smtp_generic_maps

2014-01-08 Thread pgala
but when i use generic file rewriting is field "mail from" and "recipient". I
want disabled recipient rewriting and rewrite only field "mail from". Is it
possible?
.* wildcard is ok when i use regexp, i tested it.



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/relay-mail-smtp-generic-maps-tp64189p64191.html
Sent from the Postfix Users mailing list archive at Nabble.com.


Re: relay mail - smtp_generic_maps

2014-01-10 Thread pgala
i have application where user can set sender and recipient. This application
dosen't have error check. I want set able relay mail for all user settings,
independent of correctness. For example corect user are:
user1@domain1 (default user)
user2@domain2

i want get situation that if user set user3@domain3, as sender will be
settings user1@domain1.
So in MAIL FROM: i can get any value.
I can change it with generic but i dont want change RCPT TO:

is it possible? I don't have access to using application.



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/relay-mail-smtp-generic-maps-tp64189p64256.html
Sent from the Postfix Users mailing list archive at Nabble.com.


sender_canonical_maps and no delivered mails

2014-02-03 Thread pgala
Hi,

i am using sender_canonical_maps to rewrite sender when i want send outgoing
mail. Sender_canonical_maps is:
Sender_canonical_maps---
/^.*/ mym...@isp.com
-
Sender_canonical_classes=envelope_address.

I also used dovecot to reply mail when recipient's mailbox is full. When
sender_canonical_maps is disabled everything is fine, sender have
information about no delivered mail. When sender_canonical_maps is able
information about no delivered mail is deliver to mym...@isp.com. How can i
fix it?



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/sender-canonical-maps-and-no-delivered-mails-tp64909.html
Sent from the Postfix Users mailing list archive at Nabble.com.


Re: sender_canonical_maps and no delivered mails

2014-02-19 Thread pgala
Thanks, i read it but i can't resolve my problem still.

I have private mail server using by my java application. I rewrite envelope
sender to relay mail outgoing, but i want disable this rewriting when mail
is delivered inside my domain.

I have to enable rewriting for outgoing mail to be able relay mail and i
have to disable rewriting for mail inside my domain. In other case dovecot
bounced message about qouta exceeded to relay host. Is it possible do it?

Thank for helping



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/sender-canonical-maps-and-no-delivered-mails-tp64909p65335.html
Sent from the Postfix Users mailing list archive at Nabble.com.


Re: sender_canonical_maps and no delivered mails

2014-02-19 Thread pgala
but generic rewrite envelope and header addresses. I want rewrite only
envelope addresses for only mails which are relay (not from my internal
domains). 



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/sender-canonical-maps-and-no-delivered-mails-tp64909p65345.html
Sent from the Postfix Users mailing list archive at Nabble.com.


Re: sender_canonical_maps and no delivered mails

2014-02-19 Thread pgala
I use postfix and dovecot as mail server in java application. I use virutal
domain, mysql database etc. to send internal mail. If i want send mail to
world i use my mail account in mail service provider. I want everybody can
send outgoing mail so i set in sender_canonical
---
/^.*/ mym...@isp.com
---
and i set in main.cf "sender_canonical_classes = envelope_sender".
My internal domain is @mydomain. This domain is ownership by my client, but
my mail server isnt visible from world. I use header_check to prevent user
set mail from other domains, e.g us...@xxx.com. It is fine.

I cant use generic because in this case recipient see as sender address
"mym...@isp.com". It should be e.g user1@mydomain.

In dovecot i use plugin quota exceeded to inform sender about no delivered
mail if somebody send internal mail. My problem is that dovecot send
information about no delivered messages to envelope_sender instead header
from. I try force dovecot to use header from but i cant. I also write on
dovecot mailing list by i didn't get answers still. 

I would be very greatfully if you could help me.



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/sender-canonical-maps-and-no-delivered-mails-tp64909p65348.html
Sent from the Postfix Users mailing list archive at Nabble.com.


Re: sender_canonical_maps and no delivered mails

2014-02-19 Thread pgala
but i want info about exceeded quota only if recipient is user in my internal
domain.
For example user2 have full mailbox.
If try user1@mydomain send mail to user2@mydomain then get mail "your mails
to user2@mydomain can't be delivered". This mail is generate by dovecto if i
use quota exceeded plugin.

If i dont rewrite envelope_sender by sender_canonical_maps everythings is
fine, but if i use sender_canonical_maps, mail from dovecot is delivered to
mym...@isp.com instead user1@mydomain.

I have to rewrite sender_canonical_maps for mails goint to world because i
want that other users can see addresses us...@mydomain.com,
us...@mydomain.com instead mym...@isp.com



--
View this message in context: 
http://postfix.1071664.n5.nabble.com/sender-canonical-maps-and-no-delivered-mails-tp64909p65351.html
Sent from the Postfix Users mailing list archive at Nabble.com.