Hello Sorry,I'll try to report a problem again following your instructions.
Summary I'm trying to achieve the following : - email arrives - postfix checks the sender address - postfix looks up username/password and relay host for that sender address - postfix SMTP client connects to the appropriate relay using that username/password to forward that incoming email The problem is I think I configured postfix in proper manner,hence when I send an email with configured sender address,postfix rejects it with an error : Jun 9 12:29:12 kanta postfix2/smtpd[11850]: NOQUEUE: reject: RCPT from mail-fx0-f43.google.com[209.85.161.43]: 550 5.1.1 <38163632...@domain.net>: Recipient address rejected: User unknown in local recipient table; from=<zubacdra...@gmail.com> to=<38163632...@domain.net> proto=ESMTP helo=<mail-fx0-f43.google.com> The "postconf -n" output is : alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases alternate_config_directories = /etc/postfix append_dot_mydomain = no biff = no config_directory = /etc/postfix2/ data_directory = /var/lib/postfix2 inet_interfaces = 5.5.5.5 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 mydestination = domain.net,mail.domain.net myhostname = mail.domain.net mynetworks = 127.0.0.0/8 myorigin = /etc/mailname2 queue_directory = /var/spool/postfix2 readme_directory = no recipient_delimiter = + sender_dependent_relayhost_maps = hash:/etc/postfix2/sender_relay smtp_bind_address = 5.5.5.5 smtp_host_lookup = dns, native smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix2/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sender_dependent_authentication = yes smtpd_banner = Welcome to A wasting time laboratory MTA syslog_name = postfix2 This is the output from "postfinger" tool : postfinger - postfix configuration on Thu Jun 9 20:54:06 BST 2011 version: 1.30 Warning: postfinger output may show private configuration information, such as ip addresses and/or domain names which you do not want to show to the public. If this is the case it is your responsibility to modify the output to hide this private information. [Remove this warning with the --nowarn option.] --System Parameters-- mail_version = 2.7.1 hostname = kanta uname = Linux kanta 2.6.32-5-amd64 #1 SMP Wed Jan 12 03:40:32 UTC 2011 x86_64 GNU/Linux --Packaging information-- looks like this postfix comes from deb package: postfix-2.7.1-1 --main.cf non-default parameters-- alias_maps = hash:/etc/aliases alternate_config_directories = /etc/postfix append_dot_mydomain = no biff = no config_directory = /etc/postfix2/ data_directory = /var/lib/postfix2 inet_interfaces = 5.5.5.5 mailbox_command = procmail -a "$EXTENSION" mailbox_size_limit = 0 mydestination = domain.net,mail.domain.net myhostname = mail.domain.net mynetworks = 127.0.0.0/8 myorigin = /etc/mailname2 queue_directory = /var/spool/postfix2 readme_directory = no recipient_delimiter = + sender_dependent_relayhost_maps = hash:/etc/postfix2/sender_relay smtp_bind_address = 5.5.5.5 smtp_host_lookup = dns, native smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix2/sasl_passwd smtp_sasl_security_options = noanonymous smtp_sender_dependent_authentication = yes smtpd_banner = Welcome to A wasting time laboratory MTA syslog_name = postfix2 --master.cf-- 5.5.5.5:smtp inet n - - - - smtpd pickup fifo n - - 60 1 pickup cleanup unix n - - - 0 cleanup qmgr fifo n - n 300 1 qmgr tlsmgr unix - - - 1000? 1 tlsmgr rewrite unix - - - - - trivial-rewrite bounce unix - - - - 0 bounce defer unix - - - - 0 bounce trace unix - - - - 0 bounce verify unix - - - - 1 verify flush unix n - - 1000? 0 flush proxymap unix - - n - - proxymap proxywrite unix - - n - 1 proxymap smtp unix - - - - - smtp relay unix - - - - - smtp -o smtp_fallback_relay= showq unix n - - - - showq error unix - - - - - error retry unix - - - - - error discard unix - - - - - discard local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - - - - lmtp anvil unix - - - - 1 anvil scache unix - - - - 1 scache maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} -- end of postfinger output -- The file "/etc/postfix2/sender_relay" contains line : zubacdra...@gmail.com [10.0.0.202]:52345 The file "/etc/postfix2/sasl_passwd" contains line : zubacdra...@gmail.com test:neznam Could you please let me know where I was wrong with my assumptions ? Sincerely On 06/09/11 17:40, Jerry wrote: > On Thu, 09 Jun 2011 15:00:56 +0200 > Dragan Zubac <zubacdra...@gmail.com> articulated: > >> Hello >> >> I'm trying to achieve sender dependent authentication. >> Please find corresponding configuration files in attachment. >> Although the sender dependent authentication is configured,for some >> reason postfix don't follow those rules,but is checking virtual table >> instead and rejects the incoming email. > That is not how to report a problem. Please read the documentation at: > > http://www.postfix.org/DEBUG_README.html#mail > > In particular: > > Output from "postconf -n". Please do not send your main.cf file, or > 500+ lines of postconf output. > > Better, provide output from the postfinger tool. This can be found at > http://ftp.wl0.org/SOURCES/postfinger. >