LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 05-26-2008, 05:18 AM   #1
HuffmanT
LQ Newbie
 
Registered: May 2008
Posts: 1

Rep: Reputation: Disabled
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
 
Old 05-26-2008, 10:12 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
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
 
1 members found this post helpful.
  


Reply



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
Sendmail re-writing return path hammer65 Linux - Software 1 02-01-2007 10:59 AM
procmail config file overwritten?? lmcilwain Linux - Software 2 09-21-2006 08:56 AM
quick question about Postfix mailer cylarz Linux - Software 4 07-23-2006 05:21 PM
Postfix: why is 'Return-Path' of bounce message empty Chowroc Linux - Networking 1 12-28-2005 03:52 AM
Sendmail return path dj_relentless Linux - General 2 06-07-2002 06:40 AM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 08:48 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
Open Source Consulting | Domain Registration