LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 01-21-2010, 08:44 PM   #1
m245
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Rep: Reputation: 0
Postfix Problem


One of our postfix servers is for sending/receiving internal emails only. When a user entered a wrong recipient address, it will take almost an hour for the user to get the "Recipient address rejected" email. What can be done to let the user get the "Recipient address rejected" email quickier. Thanks.
 
Old 01-21-2010, 09:49 PM   #2
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
I'm no expert, but you can't speed up the rejection rate of outgoing emails necessarily. The other server may accept any email address and only reject it hours later (or not at all).

If you would like it to reject emails destined for addresses that are supposed to exist on your server, you may find this useful.
 
Old 01-21-2010, 10:15 PM   #3
m245
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
We have two postfix servers and they are for internal use only (cannot send to/receieve from outside). We want users to receive the "Recipient address rejected" warning emails quickier. In fact, users connect to one of the postfix server can receive the "Recipient address rejected" warning emails right away, but users connect to the other postfix server can only receive the warning emails an hour later. Can it be a dns problem?
 
Old 01-21-2010, 11:07 PM   #4
sneakyimp
Senior Member
 
Registered: Dec 2004
Posts: 1,056

Rep: Reputation: 78
Mail servers can be complicated and there may be a spam blocker or virus scan stage before the mail even gets to the point where it's checked against your valid recipients list to be rejected or not.

I'm pretty new to this as well, but my guess is that you'll need to provide us with more information about your servers. Are you running spamassassin? clamav? amavisd? Looking at a bounced mail header might give some more insight.

this is how i set mine up...there's a section about address verification:
http://www.freespamfilter.org/FC4.html#_Toc110999193
 
Old 01-21-2010, 11:17 PM   #5
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Have you checked the output of postconf -n from both servers and compared them? They might actually be configured differently and all you need to do is correct the bounce options to match.
 
Old 01-22-2010, 12:12 AM   #6
m245
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
Here is the output of the postconf of the postfix server which has problem. I have checked the other postfix server and the settings are pretty much the same.


-------------------------start-------------------------
/etc> /usr/sbin/postconf -n
alias_maps = hash:/etc/aliases
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = vscan
daemon_directory = /usr/lib/postfix
debug_peer_level = 2
disable_dns_lookups = no
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = 127.0.0.1 ::1
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
maximal_queue_lifetime = 1h
message_size_limit = 10240000
mydestination = $myhostname, localhost.$mydomain, $mydomain, abcdefgh.local.cn, mail.abcdefgh.local
mydomain = abcedfgh.local
myhostname = mail.abcdefgh.local
mynetworks = 192.168.0.0/24, 192.168.1.0/24, 127.0.0.0/8
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
relay_domains = $mydestination, abcdefgh.local.hk
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_use_tls = no
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = no
smtpd_sender_restrictions = hash:/etc/postfix/access
smtpd_use_tls = no
strict_rfc821_envelopes = no
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_maps = hash:/etc/postfix/virtual
----------------------------end----------------------------------
 
Old 01-22-2010, 12:35 AM   #7
chort
Senior Member
 
Registered: Jul 2003
Location: Silicon Valley, USA
Distribution: OpenBSD 4.6, OS X 10.6.2, CentOS 4 & 5
Posts: 3,660

Rep: Reputation: 76
Pretty much != The same

The least error-prone way to check is this
Code:
server 1> postconf -n >/tmp/server1-main.conf

server 2> postconf -n >/tmp/server2-main.conf
server 2> scp server1:/tmp/server1-main.conf /tmp
server 2> diff /tmp/server1-main.conf /tmp/server2-main.conf
Also are the /etc/resolv.conf entries the same on both servers? What about /etc/hosts?
 
Old 01-22-2010, 02:22 AM   #8
m245
LQ Newbie
 
Registered: Jan 2010
Posts: 11

Original Poster
Rep: Reputation: 0
After adding back the right DNS record, the problem has been partially solved. Users can receive the warning email right away now when they typed in a non-existing user name. The remaining problem is when they enter a wrong domain name (the @xxxx.com part). They do not receive the "Relay access denied" email right away and do not know their emails are not sent out. How could this problem be solved? Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Postfix send mail problem(In RH9, kernal 2.4.20, postfix 2.1.5) minor Linux - General 6 09-23-2019 10:09 PM
Postfix: postfix: fatal: chdir(/usr/libexec/postfix) Micro420 Ubuntu 2 07-13-2008 12:21 PM
postfix problem!!or not?? sunny_5252 Slackware 1 01-14-2008 03:35 PM
Please Help Me ------ Postfix Problem joseph Linux - Networking 0 08-22-2003 10:57 PM
Postfix problem rootyard Linux - Networking 2 08-20-2003 11:08 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 03:24 AM.

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