Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Postfix configuration
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
MrSpock
n00b
n00b


Joined: 13 Jan 2003
Posts: 43

PostPosted: Tue Jan 25, 2005 4:31 pm    Post subject: Postfix configuration Reply with quote

Hello,

might be not the best place to as but i hope the friendly gentoo folks can help me out! 8)

I'm using postix as my MTA and i want to have an email address which i want to use as bounce for my newsletter. It should look like bounce-something@domain.tld
where 'something' is the email address of the reveiver for the newsletter. All the bounce-*@ should go to a scipt for further actions. Thats the easiest way to find the email address in case the mail bounced. I do not want to enable catch rest for the whole domain (spam protection).

I know it has something todo with the canonical feature of postfix but thats all i know. Any wild guesses? It seems i'm unable to find anything specific related to my probem in postfix doc (or i'm just searching in the wrong place)

Thanks guys.
_________________
If we could change our past,
would that also change who we are?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Jan 25, 2005 5:09 pm    Post subject: Reply with quote

I am having a hard time seeing what exactly you want to achieve - Postfix (or any other MTA) generally does not email messages out again when a DSN like a bounce has to be processed - there are specific configuration options for dealing with these situations.
Perhaps you could explain what it is you are trying to achieve ?
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
MrSpock
n00b
n00b


Joined: 13 Jan 2003
Posts: 43

PostPosted: Tue Jan 25, 2005 6:10 pm    Post subject: Reply with quote

sorry. a little bit unclear.
from the start: I need to catch bounces form my newsletter so i will set this email address "bounce-receiver_email@my_domain.de" as the return path for the newsletter. if it bounces somewhere it will be sent there instead of the original sender which would be apache.

so i need to make sure that all incomming mails to that email address are directed to a script.

i need the email address of the receiver in there because it's the only way to get the original address. actually this is quite common if you check the headers of an email.
_________________
If we could change our past,
would that also change who we are?
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Jan 25, 2005 6:17 pm    Post subject: Reply with quote

Okay, let me try to translate this:
- you have apache mail out a newsletter, that appears to come from newsletter@youdomain.tld ?
- when this is not deliverable, you want it to magically acquire the address BOUNCE_bounced_receiver_address@yourdomain.tld - even though the receiver is probably not in your domain ?

Or what ?
You do realise that you're not at all clear, I hope.

If, as may be the case, you instead just want everything that bounces sent back to a script, that's simple.

And what makes you think that the receiver's address will not be available in a bounced message ?

Since a bounce - or any DSN - only changes the envelope, the original sender and recipient are unchanged.

Just set up a bounce** address and process anything that gets sent there.

I guess.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
MrSpock
n00b
n00b


Joined: 13 Jan 2003
Posts: 43

PostPosted: Tue Jan 25, 2005 6:37 pm    Post subject: Reply with quote

adaptr wrote:
when this is not deliverable, you want it to magically acquire the address BOUNCE_bounced_receiver_address@yourdomain.tld - even though the receiver is probably not in your domain ?


There is no magic in that. Thats called 'Return-Path'

adaptr wrote:
And what makes you think that the receiver's address will not be available in a bounced message ?
Since a bounce - or any DSN - only changes the envelope, the original sender and recipient are unchanged.


Because thats how it is:

Code:

From: MAILER-DAEMON@mydomain.tld (Mail Delivery System)
Subject: Undelivered Mail Returned to Sender
To: newsletter@mydomain.tld


The body says something aboout
Code:

Action: failed
Status: 5.0.0
Diagnostic-Code: X-Postfix; host mx2.hotmail.com[65.54.190.7] said: 550
    Requested action not taken: mailbox unavailable (in reply to RCPT TO
    command)


adaptr wrote:
If, as may be the case, you instead just want everything that bounces sent back to a script, that's simple.


Thats exactly what i want.

adaptr wrote:
Just set up a bounce** address and process anything that gets sent there.


That was exactly my question! How do i set up a bounce*@?
_________________
If we could change our past,
would that also change who we are?
Back to top
View user's profile Send private message
langthang
Retired Dev
Retired Dev


Joined: 27 Nov 2003
Posts: 620

PostPosted: Tue Jan 25, 2005 7:22 pm    Post subject: Reply with quote

OT, I hope that your newsletter isn't one of those ... uhm ... SPAM? ;)
_________________
Gentoo users' map
Back to top
View user's profile Send private message
MrSpock
n00b
n00b


Joined: 13 Jan 2003
Posts: 43

PostPosted: Tue Jan 25, 2005 8:11 pm    Post subject: Reply with quote

No. Only for intended purpose. I'm the owner of one of these webbrowser games. http://www.smrealms.de/
_________________
If we could change our past,
would that also change who we are?
Back to top
View user's profile Send private message
d_m
Guru
Guru


Joined: 12 Jun 2003
Posts: 570
Location: Philadelphia, PA, USA

PostPosted: Tue Jan 25, 2005 8:59 pm    Post subject: Reply with quote

The easy way to do this is to create a user account named 'bounced' on your mail server. Then, install procmail and then write a script that processes the bounced mail. Finally, put a pipe to procmail in the .forward file for the user 'bounced':

~bounced/.forward:
Code:
| /usr/bin/procmail


And then write a .procmailrc file that pipes all recieved mail to your script.

That should do it. Google will probably help you out but if you need help with procmail ask about it and someone (me) could probably help you out. The .procmailrc file format isn't hard once you see some examples.
_________________
The name that can be named is not the eternal name.
Back to top
View user's profile Send private message
adaptr
Watchman
Watchman


Joined: 06 Oct 2002
Posts: 6730
Location: Rotterdam, Netherlands

PostPosted: Tue Jan 25, 2005 10:35 pm    Post subject: Reply with quote

Absolutely.

Also, since I presume the "newsletter" mail account will only be used to send mail, you can easily process incoming mail with procmail, since it will be a bounce.
_________________
>>> emerge (3 of 7) mcse/70-293 to /
Essential tools: gentoolkit eix profuse screen
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum