LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   tune up config in postfix (https://www.linuxquestions.org/questions/linux-newbie-8/tune-up-config-in-postfix-4175471876/)

adamos22 08-02-2013 11:06 AM

tune up config in postfix
 
Greetings all,

can some one provide me how to tune up my old postfix serwer

here is my config:
my config file main.cf:
queue_directory = /var/spool/postfix
command_directory = /usr/sbin
daemon_directory = /usr/libexec/postfix
mail_owner = postfix
#inet_interfaces = localhost, 10.0.0.4
unknown_local_recipient_reject_code = 550
alias_database = hash:/etc/aliases

debug_peer_level = 2

debugger_command =
PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5


sendmail_path = /usr/sbin/sendmail.postfix

newaliases_path = /usr/bin/newaliases.postfix

mailq_path = /usr/bin/mailq.postfix

setgid_group = postdrop

html_directory = no

manpage_directory = /usr/share/man

sample_directory = /usr/share/doc/postfix-2.2.2/samples

readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES

mailbox_transport = lmtp:unix:/var/lib/imap/socket/lmtp
delay_warning_time = 3h

myhostname = xxx-xxxxxxxxxxxxxxxx.xx
smtp_connect_timeout= 90
smtp_rset_timeout = 90
mydestination = $mydomain, $myhostname, localhost.$mydomain, $myhostname.$mydomain ,hash:/opt/tequila/domains/postfix/summary_domains
smtpd_banner = $myhostname ESMTP ready
debug_peer_level = 2
virtual_alias_maps = hash:/opt/tequila/domains/postfix/summary_virtual,hash:/etc/postfix/virtual
virtual_alias_domains =
transport_maps = hash:/etc/postfix/transport
alias_maps = hash:/etc/aliases, hash:/opt/tequila/domains/postfix/summary_aliases
message_size_limit = 50600000
mailbox_size_limit = 50660000
smtpd_recipient_restrictions = reject_non_fqdn_sender
reject_non_fqdn_recipient
permit_mynetworks
permit_sasl_authenticated
reject_unauth_destination
reject_unlisted_recipient
reject_unlisted_sender
check_sender_access hash:/etc/postfix/spamaccess
reject_rbl_client cbl.abuseat.org
reject_rbl_client dnsbl.sorbs.net
reject_rbl_client zen.spamhaus.org
broken_sasl_auth_clients = yes
body_checks = pcre:/etc/postfix/body_checks
header_checks = pcre:/etc/postfix/header_checks
mime_header_checks = pcre:/etc/postfix/noattach
local_recipent_maps = $alias_maps, unixasswd.byname
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = xxx-bxxxxxxxxxxx.xx
relay_domains = $mydestination
#smtp_sasl_auth_enable = yes
#smtp_sasl_security_options = noanonymous
#smtp_sasl_password_maps = hash:/etc/postfix/mdpwd
#myorigin = $mydomain
#append_dot_mydomain = no
mynetworks = 127.0.0.0/8
#mynetworks = 192.168.1.0/24

TB0ne 08-02-2013 11:20 AM

Quote:

Originally Posted by adamos22 (Post 5001675)
Greetings all,
can some one provide me how to tune up my old postfix serwer

Nope, because you don't say what problems (if any) you're having, how many users are on the system, what you mean by 'tune up' your server, what new features you want to add (if any), version/distro of Linux.

Without details or a clear goal, there's little anyone can help with.

adamos22 08-02-2013 01:04 PM

my problems in postfix is that few times users send me info that e-mail beetween them are not reciving, what i mea tune up ?
like in this article:http://www.postfix.org/TUNING_README.html

performane tune speed of sending e-mail from serwer almost everyday i have situatin when about 200 e-mail is waiting for send because of queue and its groving.

TB0ne 08-02-2013 01:10 PM

Quote:

Originally Posted by adamos22 (Post 5001738)
my problems in postfix is that few times users send me info that e-mail beetween them are not reciving, what i mea tune up ?
like in this article:http://www.postfix.org/TUNING_README.html

performane tune speed of sending e-mail from serwer almost everyday i have situatin when about 200 e-mail is waiting for send because of queue and its groving.

Ok, and you still don't say how many users, what version/distro of Linux, version of postfix, how many emails per day are going out, or any details about your environment. You don't provide details about your server, bandwidth, if it's a dedicated email server, or sharing resources with other pieces of software, and whether your server is just acting as a relay host, sending it along to another server upstream (i.e. a smarthost).

The link you posted is a great tune-up guide, that tells you how to do these things...read/follow it. What is generating all those emails? How many users aren't getting their emails, and how do they know they're not? Again...without details, there is little we can tell you.

adamos22 08-07-2013 09:42 AM

my lin version:2.6.14-1 Fedora Core 4

problems like this user have this bounced on email:
<xxxxxxxxxx_x@xxxxxxxx.xx>: host
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] said: 250 2.1.5 ok (in
reply to DATA command)

prayag_pjs 08-07-2013 09:44 AM

If you can get the complete headers of the bounce back, we can help you better.

TB0ne 08-07-2013 09:56 AM

Quote:

Originally Posted by adamos22 (Post 5004897)
my lin version:2.6.14-1 Fedora Core 4

Stop there: Fedora Core 4 reached end-of-life SEVEN YEARS AGO. It is ancient, unsupported, and hopelessly out of date. If you're running a company email server on something so old and insecure, stop. Load something current...the latest version of CentOS would be a good choice.
Quote:

problems like this user have this bounced on email:
<xxxxxxxxxx_x@xxxxxxxx.xx>: host
/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] said: 250 2.1.5 ok (in
reply to DATA command)
As said, the full bounce back message is needed, not just one line. And unless you also answer ALL the other questions that were asked previously, there's not much we can tell you. We can't/won't guess.

adamos22 08-07-2013 10:18 AM

log file:
Aug 7 15:22:10 mail master[4578]: process 11550 exited, status 0
Aug 7 15:22:10 mail postfix/smtpd[11482]: 1C1CDFBD1: client=unknown[xx.xxx.xxx.xxx], sasl_method=LOGIN, sasl_username=xxxxxxxx.xx@xxxxxxxx.xx
Aug 7 15:22:10 mail postfix/cleanup[11393]: 1C1CDFBD1: message-id=<00e501ce9371$21d1fb00$6575f100$@xxxxxxxx.xx>
Aug 7 15:22:10 mail postfix/qmgr[26332]: 1C1CDFBD1: from=<xxxxxxxx.xx@xxxxxxxx.xx>, size=2113, nrcpt=1 (queue active)
Aug 7 15:22:10 mail postfix/lmtp[11366]: 1C1CDFBD1: to=<xxxxxxxx.xx@xxxxxxxx.xx>, relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=0, status=bounced (host /var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp] said: 250 2.1.5 ok (in reply to DATA command))
Aug 7 15:22:10 mail postfix/cleanup[11509]: 2BAEFFBF1: message-id=<20130807132210.2BAEFFBF1@xxxx.xxxxxxxx.xx>
Aug 7 15:22:10 mail postfix/qmgr[26332]: 2BAEFFBF1: from=<>, size=4035, nrcpt=1 (queue active)
Aug 7 15:22:10 mail postfix/qmgr[26332]: 1C1CDFBD1: removed
Aug 7 15:22:10 mail lmtpunix[11375]: duplicate_check: <20130807132210.2BAEFFBF1@xxxx.xxxxxxxx.xx> xxxxxxxx.xx!user.xxxxxxxx.xx 0
Aug 7 15:22:10 mail postfix/smtpd[11482]: 31963FBD1: client=unknown[xx.xxx.xxx.xxx], sasl_method=LOGIN, sasl_username=xxxxxxxx.xx@xxxxxxxx.xx
Aug 7 15:22:10 mail lmtpunix[11375]: mystore: starting txn 2147666290
Aug 7 15:22:10 mail lmtpunix[11375]: mystore: committing txn 2147666290
Aug 7 15:22:10 mail lmtpunix[11375]: duplicate_mark: <20130807132210.2BAEFFBF1@xxxx.xxxxxxxx.xx> xxxxxxxx.xx!user.xxxxxxxx.xx 1375881730 23373
Aug 7 15:22:10 mail lmtpunix[11375]: mystore: starting txn 2147666291
Aug 7 15:22:10 mail lmtpunix[11375]: mystore: committing txn 2147666291
Aug 7 15:22:10 mail lmtpunix[11375]: duplicate_mark: <20130807132210.2BAEFFBF1@xxxx.xxxxxxxx.xx> .xxxxxxxx.xx+@xxxxxxxx.xx.sieve. 1375881730 0
Aug 7 15:22:10 mail postfix/lmtp[11539]: 2BAEFFBF1: to=<xxxxxxxx.xx@xxxxxxxx.xx>, relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=0, status=sent (250 2.1.5 Ok)
Aug 7 15:22:10 mail postfix/qmgr[26332]: 2BAEFFBF1: removed
Aug 7 15:22:10 mail postfix/cleanup[11344]: 31963FBD1: message-id=<00e601ce9371$21e2c3e0$65a84ba0$@xxxxxxxx.xx>
Aug 7 15:22:10 mail postfix/qmgr[26332]: 31963FBD1: from=<xxxxxxxx.xx@xxxxxxxx.xx>, size=2256, nrcpt=1 (queue active)
Aug 7 15:22:10 mail lmtpunix[11543]: duplicate_check: <00e601ce9371$21e2c3e0$65a84ba0$@xxxxxxxx.xx> xxxxxxxx.xx!user.xxxxxxxx.xx 0
Aug 7 15:22:10 mail lmtpunix[11543]: mystore: starting txn 2147666292
Aug 7 15:22:10 mail lmtpunix[11543]: mystore: committing txn 2147666292
Aug 7 15:22:10 mail lmtpunix[11543]: duplicate_mark: <00e601ce9371$21e2c3e0$65a84ba0$@xxxxxxxx.xx> xxxxxxxx.xx!user.xxxxxxxx.xx 1375881730 23285
Aug 7 15:22:10 mail lmtpunix[11543]: mystore: starting txn 2147666293
Aug 7 15:22:10 mail lmtpunix[11543]: mystore: committing txn 2147666293
Aug 7 15:22:10 mail lmtpunix[11543]: duplicate_mark: <00e601ce9371$21e2c3e0$65a84ba0$@xxxxxxxx.xx> .xxxxxxxxxx_x+@xxxxxxxx.xx.sieve. 1375881730 0
Aug 7 15:22:10 mail postfix/lmtp[11576]: 31963FBD1: to=<xxxxxxxxxx_x@xxxxxxxx.xx>, relay=/var/lib/imap/socket/lmtp[/var/lib/imap/socket/lmtp], delay=0, status=sent (250 2.1.5 Ok)
Aug 7 15:22:10 mail postfix/qmgr[26332]: 31963FBD1: removed

prayag_pjs 08-07-2013 10:24 AM

This is log. Please get the headers of bounce back. Logs not giving more information.

Headers may give us more information.

Please check the user/password exists or not.

I think this is happening because the lmtp connection got out of sync somehow.

I think a temporary fix is to disable 'lmtp_cache_connect', but I'd prefer
to keep it in the long term.

adamos22 08-07-2013 10:39 AM

Quote:

Originally Posted by prayag_pjs (Post 5004934)
This is log. Please get the headers of bounce back. Logs not giving more information.

Headers may give us more information.

Please check the user/password exists or not.

I think this is happening because the lmtp connection got out of sync somehow.

I think a temporary fix is to disable 'lmtp_cache_connect', but I'd prefer
to keep it in the long term.

ok, silly and newbie how to get headers ?

prayag_pjs 08-07-2013 12:27 PM

I gave you two solutions.
One is get headers.
Other is lmtp_cache_connect changes.
You are asking for too much, please ask google how to get the headers.

TB0ne 08-08-2013 10:46 AM

Quote:

Originally Posted by adamos22 (Post 5004945)
ok, silly and newbie how to get headers ?

Did you read what I posted to you before??? There are several questions you've not even acknowledged, much less answered, and as said, running on Fedora Core 4 is a VERY BAD IDEA.

What log file did you get the information you've already posted from??

adamos22 08-08-2013 11:52 AM

Quote:

Originally Posted by TB0ne (Post 5005658)
Did you read what I posted to you before??? There are several questions you've not even acknowledged, much less answered, and as said, running on Fedora Core 4 is a VERY BAD IDEA.

What log file did you get the information you've already posted from??

thank you for informations taht you are gave me, i`m know that FC4 today for company serwer is legacy and critical way for mail serwer, at this point still want to fight with this serwer and distro and of course create new one server with centOS and migrate all data for new one serwer.

I`m think that there is huge possibility that new versions of postfix, horde, teuilla loomsday, all data prom sasl will not be compatible with there 7 old one versions of these aplications.

TB0ne 08-08-2013 12:18 PM

Quote:

Originally Posted by adamos22 (Post 5005692)
thank you for informations taht you are gave me, i`m know that FC4 today for company serwer is legacy and critical way for mail serwer, at this point still want to fight with this serwer and distro and of course create new one server with centOS and migrate all data for new one serwer.

I`m think that there is huge possibility that new versions of postfix, horde, teuilla loomsday, all data prom sasl will not be compatible with there 7 old one versions of these aplications.

Sorry, but that's not the case. Chances are you're having problems BECAUSE of the ancient versions of software you're running. Also, what do you plan on doing when the server dies? You NEED to upgrade, so doing it will only make your environment better. Yes, it will involve some work. And what do you mean by "7 old one versions"??? If all that server is running is postfix, what's the problem? If you're running ancient versions of all that OTHER software too, it also needs to be updated.

And you STILL haven't answered any of the questions asked to you previously. Unless you're going to answer questions and provide information, there's little point in posting. Again, we can't/won't guess.


All times are GMT -5. The time now is 04:30 AM.