This is a discussion on Re: stpijg postfix prepending a Return-Path: to relayed mail. within the mailing.postfix.users forums, part of the Mail Servers and Related category; Wietse Venema wrote: >Felipe Garcia: > > >>I have a machine that receives and delivers mail via ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Wietse Venema wrote:
>Felipe Garcia: > > >>I have a machine that receives and delivers mail via a filter server to >>the server that has the mail boxes but I get a lot of mail that get a >>Return-Path header perpended to the mails.. can this be stopped? (as >>you can see the sender does envelope the from address. >> >>/felipe >>e.g. >> >> Return-Path: <FQDN.OF MTA@MYDOMAIN> >>Received: from maibox.machine (MAT [MAT.IP]) >> by maibox.machine (Postfix) with ESMTP id 40BEF76371 >> for <user@domain>; Mon, 9 Feb 2004 20:48:24 +0100 (MET) >>Received: from mailsvr.hanglas.co.kr (unknown [220.118.141.2]) >> by MTA (Postfix) with ESMTP id 423B61B25 >> for <user@domain>; Mon, 9 Feb 2004 20:48:22 +0100 (CET) >>From: postmaster@hanglas.co.kr >> >> > >$ grep flags /etc/postfix/master.cf > > grep flags /etc/postfix/master.cf >$ man 8 pipe > > > being there done that... main.cf queue_directory = /var/spool/postfix command_directory = /usr/local/postfix/sbin daemon_directory = /usr/local/postfix/libexec readme_directory = no sample_directory = /etc/postfix/sample manpage_directory = /usr/local/postfix/man header_checks = regexp:/etc/postfix/head_checks local_transport = smtp:[localhost]:10024 sendmail_path = /usr/local/postfix/sbin/sendmail newaliases_path = /usr/local/postfix/sbin/newaliases mailq_path = /usr/local/postfix/sbin/mailq syslog_facility = mail mail_owner = postfix setgid_group = postdrop relay_recipient_maps = hash:/etc/postfix/virtual proxy:mysql:/etc/postfix/mysql-user.cf transport_maps = hash:/etc/postfix/transport hash:/etc/postfix/free2premium_transport proxy_read_maps = proxy:mysql:/etc/postfix/mysql-recipient.cf, proxy:mysql:/etc/postfix/mysql-free2premium.cf, proxy:mysql:/etc/po stfix/mysql-f2p-transport.cf, proxy:mysql:/etc/postfix/mysql-user.cf proxy:unix:passwd.byname virtual_alias_maps = hash:/etc/postfix/virtual hash:/etc/postfix/free2premium_virtual alias_maps = hash:/etc/postfix/aliases alias_database = hash:/etc/postfix/aliases mydomain = spray.net myorigin = $mydomain inet_interfaces = all mydestination = relay_domains = <omited> mynetworks_style = subnet mynetworks = 127.0.0.0/8, <omitted> message_size_limit = 15000000 qmgr_message_active_limit = 10000 qmgr_site_hog_factor = 100 queue_minfree = 30000000 command_time_limit = 2000s in_flow_delay = 10s smtpd_error_sleep_time = 0s default_destination_concurrency_limit = 20 local_destination_concurrency_limit = 2 local_destination_recipient_limit = 1 mail.local_destination_concurrency_limit = 2 mail.local_destination_recipient_limit = 1 smtp_destination_concurrency_limit = 50 smtp_destination_recipient_limit = 15 smtp_connect_timeout = 30s smtpd_timeout = 15s smtpd_delay_reject=no fallback_relay = lmbounce.vip.spray.net disable_vrfy_command = yes smtpd_helo_required = yes biff = no parent_domain_matches_subdomains = smtpd_access_maps non_fqdn_reject_code = 501 smtpd_restriction_classes = from_freemail_host from_freemail_host = check_client_access hash:/etc/postfix/freemail_hosts, reject smtpd_client_connection_count_limit = 5 smtpd_client_connection_rate_limit = 20 client_connection_rate_time_unit = 360 client_connection_status_update_time = 5 smtpd_client_connection_limit_exceptions = $mynetworks smtpd_helo_restrictions = smtpd_client_restriction = smtpd_sender_restrictions = smtpd_recipient_restrictions = reject_invalid_hostname, reject_non_fqdn_hostname, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unknown_sender_domain, reject_unknown_recipient_domain, permit_mynetworks, reject_unauth_destination, check_sender_access regexp:/etc/postfix/sender_access, check_sender_access hash:/etc/postfix/freemail_access, check_client_access hash:/etc/postfix/client_access, reject_rbl_client cbl.abuseat.org, reject_rbl_client sbl.spamhaus.org, reject_rbl_client list.dsbl.org, reject_rbl_client opm.blitzed.org, reject_rbl_client relays.ordb.org, check_recipient_access proxy:mysql:/etc/postfix/mysql-recipient.cf, permit smtpd_data_restrictions = reject_unauth_pipelining, permit master.cf # # ================================================== ======================== # service type private unpriv chroot wakeup maxproc command + args # (yes) (yes) (yes) (never) (50) # ================================================== ======================== smtp inet n - n - 350 smtpd #9999 inet n - n - 250 smtpd #628 inet n - n - - qmqpd pickup fifo n - n 60 1 pickup #cleanup unix n - n - 0 cleanup cleanup unix n - n - 0 cleanup qmgr fifo n - n 300 1 qmgr #qmgr fifo n - n 300 1 nqmgr rewrite unix - - n - - trivial-rewrite bounce unix - - n - 0 bounce defer unix - - n - 0 bounce flush unix n - n 1000? 0 flush proxymap unix - - n - - proxymap smtp unix - - n - 1024 smtp relay unix - - n - - smtp # -o smtp_helo_timeout=5 -o smtp_connect_timeout=5 showq unix n - n - - showq error unix - - n - - error local unix - n n - - local virtual unix - n n - - virtual lmtp unix - - n - - lmtp # # Interfaces to non-Postfix software. Be sure to examine the manual # pages of the non-Postfix software to find out what options it wants. # The Cyrus deliver program has changed incompatibly. # trace unix - - n - 0 bounce verify unix - - n - 1 verify anvil unix - - n - 1 anvil transport contains all my dominas in the format domain1.com smtp:[localhost]:10024 domain2.com smtp:[localhost]:10024 the filter runnig on localhost buffers the headers from postfix put the body thur the filter and then just using the buffered headers and body send tohem to port 25 on the mailbox machine. hope this can help to find out were I have gone wrong? /felipe |