Hello I've sent en email with sender address specified on corresponding config files,and postfix did not process that email according to its specification. I just send logs captured at the moment the postfix was receiving that email that should processed in different manner than rejecting it.
Sincerely On 06/09/11 22:18, Brian Evans - Postfix List wrote: > On 6/9/2011 4:09 PM, Dragan Zubac wrote: >> 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> > This log has nothing to do with sender dependent relayhost. > > The log says: > 1. mail-fx0-f43.google.com wants to send a mail to 38163632...@domain.net > 2. According to the postconf below, "domain.net" is in mynetworks. > 3. However, 38163632914 is not a valid local user, so reject the email. > > > Note: if you want to hide the domain in question, please use > example.(net|org|com) as they are reserved for that purpose. > > Brian > >> 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 >