LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   SLES 10 - Postfix mailer config - Return Path overwritten (https://www.linuxquestions.org/questions/linux-enterprise-47/sles-10-postfix-mailer-config-return-path-overwritten-644810/)

HuffmanT 05-26-2008 05:18 AM

SLES 10 - Postfix mailer config - Return Path overwritten
 
A batch mailer is configured for a ReturnPath mailadmin@domain.com. When sent the ReturnPath is always overwritten to root@domain.com.

I have experimented in the main.cf file, but can't seem to find the value that would change it. I need this for bounce mail. The mails have to be directed to the mail server. This server can only send mail.

Where do I find that variable?






Content-Type: text/plain;
charset=us-ascii
Content-Transfer-Encoding: 7bit
Message-Id: <20080526095814.65216C17D8D@domain.com>
From: bobby_jones@domain.com (root)
X-imss-version: 2.051
X-imss-result: Passed
X-imss-scanInfo: M:P L:E SM:0
X-imss-tmaseResult: TT:0 TS:0.0000 TC:00 TRN:0 TV:5.5.1026(15828.000)
X-imss-scores: Clean:0.20207 C:2 M:3 S:5 R:5
X-imss-settings: Baseline:1 C:1 M:1 S:1 R:1 (0.0000 0.0000)
Return-Path: root@domain.com
X-OriginalArrivalTime: 26 May 2008 09:58:14.0585 (UTC) FILETIME=[039D4290:01C8BF17]

==========================
From main.cf


inet_protocols = all
biff = no
mail_spool_directory = /var/mail
canonical_maps = hash:/etc/postfix/canonical
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = hash:/etc/postfix/virtual
relocated_maps = hash:/etc/postfix/relocated
transport_maps = hash:/etc/postfix/transport
sender_canonical_maps = hash:/etc/postfix/sender_canonical
masquerade_exceptions = root
masquerade_classes = envelope_sender, header_sender, header_recipient
#myhostname = domain.com
myhostname = domain.com
program_directory = /usr/lib/postfix
inet_interfaces = 127.0.0.1 ::1
#masquerade_domains = domain.com
masquerade_domains = domain.com

#mydestination = $myhostname, localhost.$mydomain
mydestination = *
defer_transports =
mynetworks_style = subnet
disable_dns_lookups = no
relayhost = [mickeymouse.domain.com]
mailbox_command =
mailbox_transport =
strict_8bitmime = no
#disable_mime_output_conversion = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
strict_rfc821_envelopes = no
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtp_sasl_auth_enable = no
smtpd_sasl_auth_enable = no
smtpd_use_tls = no
smtp_use_tls = no
alias_maps = hash:/etc/aliases
mailbox_size_limit = 0
message_size_limit = 10240000

billymayday 05-26-2008 10:12 PM

Why do you think it's postfix doing this? I rather doubt that it is. Note that Return path And Sender are different headers.

Perhaps you can lift the level of verbosity on the logs, but I doubt this will help.


That said, what do you have in sender_canonical_maps?

Also have you tried

masquerade_exceptions = root, mailadmin


All times are GMT -5. The time now is 08:06 PM.