LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 11-18-2005, 11:12 PM   #1
rbonafied
Member
 
Registered: Nov 2003
Location: Delaware
Distribution: Mandriva 2007
Posts: 50

Rep: Reputation: 15
Postfix User forwarding confusion


I must be using the wrong terms in my search. I'm having difficulty understanding the postfix documentation and can't find something to lift the fog. Here goes ...


I have an email forward subscription that I pay for where:
user1@mydomain is forwarded to otheruser1@somecomcast.net[/email]
user2@mydomain is forwarded to otheruser2@somecomcast.net[/email]
catchall@mydomain is forwarded to catchall@somecomcast.net[/email]

My MX record is currently pointing to:
10:mailservice.ipayforthis.com

I want to setup a server to do this myself so I don't have to pay them anymore and solve some other problems. The server is in my house behind a router. It runs Mandriva Linux with postfix.

Here's where I need help:

Assuming I setup another MX record to call my server instead of the ipayforthis.com server. How do I duplicate the forwarding behavior? And by how, I really could use actual steps since I can't seem to make heads or tails of the documentation myself. Oh, and I don't want to create "local" users on the server.

1) What parameters do I activate in the postfix files and what should their values be?
2) Where are the user forward mappings stored?
3) Is this even possible?

Thank you!
r

Last edited by rbonafied; 11-18-2005 at 11:15 PM.
 
Old 11-19-2005, 08:16 AM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
In your main.cf:
Code:
mydestination =
virtual_alias_domain = mydomain.com
virtual_alias_maps = hash:/etc/postfix/virtual
Create a file /etc/postfix/virtual with these lines:
Finally, convert the virtual table to a .db file and reload the new config:
Code:
# postmap /etc/postfix/virtual
# postfix reload
The catchall is a bad idea because of the high volume of spam you're likely to get. It's best to accept mail only to valid recipients.

Last edited by Berhanie; 11-19-2005 at 08:34 AM.
 
Old 11-19-2005, 01:27 PM   #3
rbonafied
Member
 
Registered: Nov 2003
Location: Delaware
Distribution: Mandriva 2007
Posts: 50

Original Poster
Rep: Reputation: 15
That worked perfectly. Thank you very much.


Now on to spam detection.
 
Old 11-19-2005, 02:11 PM   #4
rbonafied
Member
 
Registered: Nov 2003
Location: Delaware
Distribution: Mandriva 2007
Posts: 50

Original Poster
Rep: Reputation: 15
One of the addresses I am forwarding to is on AOL. I am getting a delivery error. Can anyone offer some insight into why this is happening?

In the virtual file I have:
example_example@mydomain.com example_example@aol.com


Error text below:

Reporting-MTA: dns; comcast.net
Arrival-Date: 19 Nov 2005 19:48:51 +0000

Final-Recipient: rfc822; <example_example@aol.com>
Action: failed
Status: 5.1.0 MAIL FROM: <me@mydomain.com> 554 REPLY: 554-:__(HVU:B1)_http://postmaster.info.aol.com/errors/554hvub1.html
Diagnostic-Code: smtp; Permanent Failure: Other address status
Last-Attempt-Date: Sat, 19 Nov 2005 19:48:52 -0000
 
Old 11-19-2005, 04:55 PM   #5
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Following the link provided in the error message...
Quote:
Error 554 HVU:B1

554 HVU:B1
http://postmaster.info.aol.com/errors/554hvub1.html
EXPLANATION:

There is at least one URL in your email that is generating substantial complaints from AOL members.

SOLUTION:

If you own all the domains linked to in your e-mail, please contact us to discuss more effective management of your complaint levels. You can start by setting up a free complaint loop through this form. This will allow you to receive AOL member complaints against your domain.

If you do not own the domain, please have the owner of that domain contact us.
 
Old 11-19-2005, 06:26 PM   #6
rbonafied
Member
 
Registered: Nov 2003
Location: Delaware
Distribution: Mandriva 2007
Posts: 50

Original Poster
Rep: Reputation: 15
If I'm relaying my mail through smtp.comcast.net using the following line in main.cf, wouldn't this act like smtp.comcast is what sent the mail on to AOL and thereby be an acceptable domain?

relayhost = smtp.comcast.net


Or does AOL think the email originated from an unofficial ip/domain and thereby blocked it?


Either way, is there a right way to do the "relaying" so AOL and other sites won't complain?

Thanks again,
r
 
Old 11-19-2005, 07:38 PM   #7
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
Seems they're complaining about content (an offensive URL in the message body), not about where the mail originated. But, then you might try sending something inoffensive to test this theory.

Last edited by Berhanie; 11-19-2005 at 10:11 PM.
 
Old 11-20-2005, 08:37 AM   #8
rbonafied
Member
 
Registered: Nov 2003
Location: Delaware
Distribution: Mandriva 2007
Posts: 50

Original Poster
Rep: Reputation: 15
Hmmm...I can't imagine why it would be considered "offensive". The email originated by me (via thunderbird) from smtp.comcast.net, then hit the internet to my domain (mydomain.com) which sent it back to my server which would have forwarded it to aol. So I think it only passed through 3 unique servers (that I can figure). The message itself was this:

"I just sent you this email to testuser@mydomain.com . Please let me know
if you got it at your aol address."

r
 
Old 11-20-2005, 09:50 AM   #9
rbonafied
Member
 
Registered: Nov 2003
Location: Delaware
Distribution: Mandriva 2007
Posts: 50

Original Poster
Rep: Reputation: 15
I just got off the phone with AOL. It seems they have something that actually scans the body of a message for link "correctness". For some reason AOL didn't like the particular email address included in the body. When I removed the link, the email went through.

I'm not sure if it's worth it for me to try digging into why AOL would consider that email address malformed, or otherwise incorrect. The only thing that pops to mind is my MX record was pointing to a CNAME instead of an A name. I've since corrected that.

Anyway, thank you, Berhanie, for all your help.

r
 
Old 11-20-2005, 10:30 AM   #10
Berhanie
Senior Member
 
Registered: Dec 2003
Location: phnom penh
Distribution: Fedora
Posts: 1,625

Rep: Reputation: 165Reputation: 165
You're welcome.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Mail Forwarding in postfix/maildrop/redhat (like yahoo mail forwarding) topcat Linux - Software 1 08-31-2007 12:10 PM
Forwarding incoming mail (postfix) herc Linux - Software 3 03-09-2007 04:43 PM
Postfix mail forwarding loop lacerto Linux - Networking 1 06-01-2005 06:07 PM
postfix forwarding mail problem smurfix Linux - Software 2 11-08-2004 08:57 PM
Forwarding mail through Postfix Phaethar Linux - Networking 0 03-01-2004 08:00 AM


All times are GMT -5. The time now is 10:27 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration