#1  
Old 18th February 2008, 08:27
tonton01 tonton01 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default customize bounce message

I'm not sure if any of you ever tried this but I want to get rid of the IP address in the bounce message below the "The Mail System" part. The bounce.cf allows you to change the top part, but where do I change the bottom part? The reason is it shows my private IP instead of my domain name.

I'm using postfix 2.4 configured it as a gateway server to my main. The stupid bounce messages keeps stamping the private ip of the main server but I want it to just stamp it with my domain name instead. Postfix bounce(5) doesn't say anything about changing the bottom part, only the header and body. Does anyone know how I can change that to say my domain name instead or even the public ip? I searched & searched but can't find anything on it. I might be searching the wrong key words. I don't know what other words to use.

Thanks.
Reply With Quote
Sponsored Links
  #2  
Old 19th February 2008, 13:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

What's in your /etc/postfix/main.cf?
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 20th February 2008, 08:21
tonton01 tonton01 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here's my postconf -n

alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = no
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = smtp-amavis:[localhost]:10024
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
disable_vrfy_command = yes
html_directory = no
inet_interfaces = all
local_recipient_maps =
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
message_size_limit = 20971520
mydestination =
mydomain = company.com
myhostname = mx1.company.com
mynetworks = this.server.private.ip
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.4.5/README_FILES
recipient_delimiter = -
relay_domains = $mydomain
sample_directory = /usr/share/doc/postfix-2.4.5/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtpd_banner = $mydomain ESMTP Unauthorized Use Of This Server Is Prohibited
smtpd_client_restrictions = check_client_access hash:/$config_directory/client_access
smtpd_data_restrictions = reject_unauth_pipelining
smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks, check_client_access hash:/etc/postfix/client_access, check_recipient_access hash:$config_directory/recipient_access, check_sender_access hash:$config_directory/sender_access, permit
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions = check_sender_access hash:$config_directory/sender_access
smtpd_starttls_timeout = 60s
smtpd_tls_auth_only = yes
smtpd_tls_cert_file = /etc/postfix/tls/server.pem
smtpd_tls_key_file = $smtpd_tls_cert_file
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_rfc821_envelopes = yes
unknown_local_recipient_reject_code = 554

Thanks for the help.

Not sure if I should start a new thread but I'm also experiencing "mail for company.com loops back to myself" regardless if I use my own personal webmail except yahoo. Really strange It will bounce about looping from other sites except yahoo. I noticed it bounced a message from another person when I was testing it that's not on our network as well. I tried disabling amavisd and it still does the same, so my conclusion is my config. But what? I took out "smtpd_helo_required" & "helo_restrictions" but still no avail.
Reply With Quote
  #4  
Old 20th February 2008, 11:57
topdog topdog is offline
Senior Member
 
Join Date: Jan 2008
Location: South Africa
Posts: 1,352
Thanks: 0
Thanked 153 Times in 150 Posts
Default

Take a look at this. http://www.topology.org/linux/postfixloop.html
__________________
----
http://www.topdog.za.net - Got Linux problems ? - I can help.
http://www.baruwa.org - Try it.
Reply With Quote
  #5  
Old 25th February 2008, 02:36
tonton01 tonton01 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks topdog.

I ended up reinstalling the os. I found it strange that over night, the main.cf just suddenly reconfigured itself. The postconf -n posted here was the one I reconfigured after it got messed up. I thought it would work fine if I copied the default and configure it but it just didn't work. When I telnet localhost and test mail, it worked fine but kept bouncing everything else except yahoo. After a fresh reinstall and configuration, it's working great now.

So now I'm back to my original question. How do I change the bottom portion of the bounce message to not stamp my private ip but instead my public ip or domain name? Hope you can help falko.
Reply With Quote
  #6  
Old 25th February 2008, 17:39
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,727 Times in 2,565 Posts
Default

I've just found this: http://www.wains.be/index.php/2007/0...unce-messages/
but I'm not sure if this is the solution to your problem...
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #7  
Old 21st April 2008, 03:55
tonton01 tonton01 is offline
Junior Member
 
Join Date: Feb 2008
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

I finally got a chance to check out the link and continue with my test. The link you gave me, falko, is basically the same as what postfix has and doesn't say anything about the bottom part which spills out the ip. I want to change the ip but it doesn't tell how.

Hope you or someone out there knows how.

Thanks
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Rejecting outbound mail tristanlee85 General 11 20th May 2007 17:04
How to increase Message size problem AngelDrago Installation/Configuration 2 19th May 2007 16:24
Change Postfix Quota exceeded error message steowimmy Installation/Configuration 3 16th November 2006 15:20
Maximim message size HackerJL Installation/Configuration 2 19th August 2006 10:17
Infinite bounce loop confuzzled Installation/Configuration 1 20th March 2006 20:25


All times are GMT +2. The time now is 12:20.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.