LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices



Reply
 
Search this Thread
Old 02-15-2005, 09:24 AM   #1
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Rep: Reputation: 33
Postfix: Sender address rejected when matching $mydestination


I'm having a problem with my Postfix: it is rejecting e-mail with a MAIL FROM: address that matches $mydestination. The error it gives is "Sender address rejected: User unknown in local recipient table".

Looking through the logs I can see Postfix is trying to find the sender address that it matched to $mydestination in the LDAP directory. It is not there, and that is why it is failing.

What I would like to know is, why it is trying to look up the sender address in the first place? I have no smtpd_sender_restrictions set, and I have reject_unauth_destination in my smtpd_recipient_restrictions... according to the Postfix manual that should make it accept everything sent to existinguser@$mydestination regerdless of the origin, if I read it correctly.

What am I missing?
 
Old 02-16-2005, 06:42 AM   #2
[GOD]Anck
Member
 
Registered: Dec 2003
Location: The Netherlands
Distribution: Slackware
Posts: 171

Original Poster
Rep: Reputation: 33
Bump... not solved this yet. I can't think of any reason why the sender address should be checked when it matches $mydomain. I require users to set up TLS and authenticate before sending e-mail, and once they are authenticated how does it matter if the address they specify exists or not? I do not have any smtpd_sender_restrictions, and smtpd_recipient_restrictions is set to permit_sasl_authenticated, reject. That should make postfix accept only e-mail from SASL-authenticated users. The logs show me successfully authenticating, then show Postfix happily refusing my e-mail based on 450: my sender address not being in the recipient table...

I've read and re-read the smtpd_x_restrictions parts of the postfix documentation but I can't find what is controlling this check and why it is necessary in the first place. Any help would be appreciated!

EDIT: purely in the interest of science I added an entry to the LDAP directory with mail = @agneovo.nl and uid = fake, the sender lookup now no longer returns empty and e-mail works as I want it to. All postfix wants is to be able to query the recipient table and get a match for the sender address, it then proceeds to do nothing with that information. Obviously this "solution" is hackish and wrong, and it will likely bite me in the future, but I cannot figure out for the life of me what I am supposed to do instead.

EDIT2: disabling all recipient table checking by setting "local_recipient_maps =" seems to have more of the desired effect in that the sender address lookups aren't done at all. But then again, neither are recipient address lookups, and somehow Postfix still delivers... I'm confused.

Last edited by [GOD]Anck; 02-16-2005 at 08:57 AM.
 
  


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
POSTFIX how to block/delete mail from sender... hct224 Linux - Newbie 5 12-29-2009 11:11 PM
Mail from Apache being rejected - Cannot route to sender apache@localhost.localdomain jimwillsher Linux - Networking 2 01-19-2006 01:41 AM
Postfix - Sender address includes localhost buskmann Linux - Software 1 05-04-2005 08:56 AM
Postfix error - Recipient address rejected: Relay access denied robbiemorgan Linux - Newbie 1 10-01-2004 04:57 AM
Sendmail Domain of sender address does not exist mantiev Linux - Networking 0 05-08-2001 08:58 AM


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

Main Menu
Advertisement
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