Sponsored Content
Special Forums IP Networking Postfix: Masquerading_Domains does not work Post 302338935 by xunil321 on Wednesday 29th of July 2009 09:53:18 AM
Old 07-29-2009
Postfix: Masquerading_Domains does not work

Dear all!

We are using a SLES 10 SP2 system where we installed a
Mail Server according to this tutorial:

Cool Solutions: Configuring a Mail Server on SLES

Everything is running fine except for the Masquerading
feature. For instance the e-mail sender should have this
"user@example.com" form but it appears as "user@mail-s.
example.com".
Here is now the relevant /etc/postfix/main.cf entry:
...............
...............
masquerade_domains=ldap:/etc/postfix/ldapmasquerade_
domains.cf
.................

ldapmasquerade_domains.cf has this content:
# This file was created by yast2-mail-server. Please do
not edit it!
server_host=localhost
query_filter=(&(objectclass=suseMailDomain)(zoneName=%s)
(suseMailDomainMasquerading=yes))
search_base=ou=DNS,dc=example,dc=com
timeout=20
result_attribute=zoneName
bind=no
server_port=389
scope=sub
#

By using "masquerade_domains=example.com" in the main.cf
file, the sender is now as we want to see it ie.
"user@example.com".

Any idea what's wrong with the ldapmasquerade_domains.cf
configuration?

THX, Rainer
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

Postfix

I can send email. I just can't receive email I am getting and error Permanent Failure: 554_Transaction_failed. All the services are running. I can telnet to 110 25 143. I am also running Imap. I can send and receive email internally I can send email outside of my network I can't receive emails... (3 Replies)
Discussion started by: rbizzell
3 Replies

2. UNIX for Advanced & Expert Users

Postfix 2.3.

When I use the postalias command I am getting an error that says no mapping in /etc/mail/mailer.conf. I am running FreeBsd 6.1 and in my main.cf I have my alias database is alias_maps= hash:/etc/mail/aliases I tried the command two different ways /usr/local/sbin/postalias /etc/mail/aliases... (2 Replies)
Discussion started by: rbizzell
2 Replies

3. UNIX for Dummies Questions & Answers

Script doesn't work, but commands inside work

Howdie everyone... I have a shell script RemoveFiles.sh Inside this file, it only has two commands as below: rm -f ../../reportToday/temp/* rm -f ../../report/* My problem is that when i execute this script, nothing happened. Files remained unremoved. I don't see any error message as it... (2 Replies)
Discussion started by: cheongww
2 Replies

4. Linux

postfix

hi when I telnet to my machine on port 25 and send an email to myself, the machine sends the email to the old corporate mail server instead of the new corporate mail server. how to change that so that any email sent from my linux box goes directly to the new mail server? thx (2 Replies)
Discussion started by: melanie_pfefer
2 Replies

5. UNIX for Dummies Questions & Answers

postfix

I have a strange problem I have a solaris 8 machine which sends me an email to my outlook every night about the status of the system. The end of this script looks like this mailx -s "$TITLE" mrxyz@mycompany.com < $TMPF and it is working fine My problem is when i just use mailx... (1 Reply)
Discussion started by: Tirmazi
1 Replies

6. IP Networking

postfix - reinject mail to postfix from hold queue directory

hi all. Am using smtpd_recipient_restrictions & check_recipient_access in postfix. The hash file looks like this: emailaddress1 HOLD emailaddress2 HOLD The aim is to place email from these recipients in the hold directory,check them then reinject them back in postfix on some... (0 Replies)
Discussion started by: coolatt
0 Replies

7. UNIX for Dummies Questions & Answers

Please help with Postfix config issue - How to allow remote Exchange server to relay to my postfix

Hi guys One of our clients have a problem with sending email to a certain domain. No matter what we try, the mails just dont get delivered. What I did then, is created a new connector on their Exchange server, pointing all mail sent to their client at "domain1" to relay to our Postfix mail... (0 Replies)
Discussion started by: wbdevilliers
0 Replies

8. Shell Programming and Scripting

My script work on Linux but not work in sunos.

My script work on Linux but not work in sun os. my script. logFiles="sentLog1.log sentLog2.log" intial_time="0 0" logLocation="/usr/local/tomcat/logs/" sleepTime=600 failMessage=":: $(tput bold)Log not update$(tput rmso) = " successMessage="OK" arr=($logFiles)... (7 Replies)
Discussion started by: ooilinlove
7 Replies

9. UNIX and Linux Applications

Postfix: Active Directory and postfix alias

I have a mailserver with postfix i want to alias all mail for administrator@domain.fqdn to root@domain.fqdn I have the aliases configured,and i did newliases but doesn't work. How to did this?Postfix is configured for virtual domain on ad server. (2 Replies)
Discussion started by: Linusolaradm1
2 Replies

10. IP Networking

Discussion at work, would a router work pluging a cable in wan1 and lan1?

hi all. and sorry for the random question, but this sparkled a raging flame-war at work and i want more points of view situation a router, with linux of some sort, dhcp client requesting for ip in wan1 (as usual with wan ports) dhcp server listening in lan1, and assigning ip (as usual... (9 Replies)
Discussion started by: broli
9 Replies
CLEANUP(8)						      System Manager's Manual							CLEANUP(8)

NAME
cleanup - canonicalize and enqueue Postfix message SYNOPSIS
cleanup [generic Postfix daemon options] DESCRIPTION
The cleanup daemon processes inbound mail, inserts it into the incoming mail queue, and informs the queue manager of its arrival. The cleanup daemon always performs the following transformations: o Insert missing message headers: (Resent-) From:, To:, Message-Id:, and Date:. o Extract envelope recipient addresses from (Resent-) To:, Cc: and Bcc: message headers when no recipients are specified in the mes- sage envelope. o Transform envelope and header addresses to the standard user@fully-qualified-domain form that is expected by other Postfix programs. This task is delegated to the trivial-rewrite(8) daemon. o Eliminate duplicate envelope recipient addresses. The following address transformations are optional: o Optionally, rewrite all envelope and header addresses according to the mappings specified in the canonical(5) lookup tables. o Optionally, masquerade envelope sender addresses and message header addresses (i.e. strip host or domain information below all domains listed in the masquerade_domains parameter, except for user names listed in masquerade_exceptions). By default, address masquerading does not affect envelope recipients. o Optionally, expand envelope recipients according to information found in the virtual(5) lookup tables. The cleanup daemon performs sanity checks on the content of each message. When it finds a problem, by default it returns a diagnostic sta- tus to the client, and leaves it up to the client to deal with the problem. Alternatively, the client can request the cleanup daemon to bounce the message back to the sender in case of trouble. STANDARDS
RFC 822 (ARPA Internet Text Messages) DIAGNOSTICS
Problems and transactions are logged to syslogd(8). BUGS
Table-driven rewriting rules make it hard to express if then else and other logical relationships. CONFIGURATION PARAMETERS
The following main.cf parameters are especially relevant to this program. See the Postfix main.cf file for syntax details and for default values. Use the postfix reload command after a configuration change. Content filtering body_checks Lookup tables with content filters for message body lines. These filters see physical lines one at a time, in chunks of at most line_length_limit bytes. header_checks Lookup tables with content filters for message header lines. These filters see logical headers one at a time, including headers that span multiple lines. Miscellaneous always_bcc Address to send a copy of each message that enters the system. hopcount_limit Limit the number of Received: message headers. undisclosed_recipients_header The header line that is inserted when no recipients were specified in (Resent-)To: or (Resent-)Cc: message headers. Address transformations empty_address_recipient The destination for undeliverable mail from <>. This substitution is done before all other address rewriting. canonical_maps Address mapping lookup table for sender and recipient addresses in envelopes and headers. recipient_canonical_maps Address mapping lookup table for envelope and header recipient addresses. sender_canonical_maps Address mapping lookup table for envelope and header sender addresses. masquerade_classes List of address classes subject to masquerading: zero or more of envelope_sender, envelope_recipient, header_sender, header_recipi- ent. masquerade_domains List of domains that hide their subdomain structure. masquerade_exceptions List of user names that are not subject to address masquerading. virtual_maps Address mapping lookup table for envelope recipient addresses. Resource controls duplicate_filter_limit Limit the number of envelope recipients that are remembered. header_size_limit Limit the amount of memory in bytes used to process a message header. in_flow_delay Amount of time to pause before accepting a message, when the message arrival rate exceeds the message delivery rate. extract_recipient_limit Limit the amount of recipients extracted from message headers. SEE ALSO
canonical(5) canonical address lookup table format qmgr(8) queue manager daemon syslogd(8) system logging trivial-rewrite(8) address rewriting virtual(5) virtual address lookup table format FILES
/etc/postfix/canonical*, canonical mapping table /etc/postfix/virtual*, virtual mapping table LICENSE
The Secure Mailer license must be distributed with this software. AUTHOR(S) Wietse Venema IBM T.J. Watson Research P.O. Box 704 Yorktown Heights, NY 10598, USA CLEANUP(8)
All times are GMT -4. The time now is 08:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy