Archive

Posts Tagged ‘postfix’

Set the max pop connections simutaneously of one ip in postfix

October 21st, 2010 1 comment

In postfix by defaults,if one same ip has more than 4 pop3/imap clients to simutaneously receiving letters from(for example,your company has 5 people to connect to the same mail account to receive letters),the server will report the following errors in log file mail.err:
tail -f /var/log/mail.err:
Oct 21 04:27:31 newserver6484 couriertcpd: Maximum connection limit reached for ::ffff:1xxx.xxx.xxx.xxx
#xxx is the busy ip address,may be your company's ip address
To avoid the errors,do as the follows:
vim /etc/courier/pop3d #modify MAXPERIP=40,by default 4
Then,reboot courier-pop:
/etc/init.d/courier-pop restart
After the above operations,using tail -f /var/log/mail.err to see the result.Yes,no errors logged in the file any more.

use mail command to send mail,postcat to read letter(postfix)

October 11th, 2010 No comments

In linux shell environment,using mail command to send mail,then use postcat command to read letter.

1.mail command
mail mail@yourdomain.tld

#type in the subject of the mail

#Enter,then type in the content of your mail

#press Ctrl+D to end your mail content,it then alerts Cc(carbon copy).If you need a Cc,type in.Then press Enter.The mail will be sent.
2.postcat command to read letter
postcat /var/spool/mail/virtual/yourdomain.tld/mail/new/1286789339.V801I7a28b4M273330.newserver6484
Or,you may also use outlook or other MUA to receive letter,which seems more convenient and advanced,isn't that?

Categories: IT Architecture, Linux, Systems Tags: ,