Real-time monitoring of mail server status requires scripting tasks to support
#!/bin/bash
#Purpose: Check Postfix and Pop3 MySQL service status
#Author: Andylhz
#Date: 2010-07-29
dt= ' Date ' +%y:%m:%d:%h:%m '
mailer=root@test.cn
Mailer2=138xxxxxxxx@139.com
host=mail.test.cn
#Dovecot服务的检查 exists, the message appears normal, otherwise the service will be restarted
dovecot= ' ps aux |grep pop3-login | Grep-v "grep" |awk {' Print $11 '} | Uniq
First, DNS configuration
Type
name
value
TTL
A
Mail
128.199.254.32
1 hours
Mx
@
mail.example.com ( priority:Ten)
1 hours
Txt
@
v=spf1 mx:mail.example.com ip4:128.199.254.32 ~all
1 hours
TXT
Mail._domain
KeyV=dkim1;k=rsa; P=migfma0gcsqgsi ...
1 hours
Where you can configure A and MX records first, Two txt records are used for "anti-spam ", w
The instructor asked me to set up an email server and searched for some tutorials online, but all of them were wrong. After three and a half days of hard work, I finally completed the setup and thanked the seniors who wrote the tutorials, the following is my summary. (Authmysql. so and athlib connect to the mysql configuration file with a space after the user name ten millions of attention, I am not a shack) I. Install the postfix Mail Server
The inst
Postfix set the message header translation, the domain mail does not carry on the message header translation, only sends to the external network carries on the mail header translation?Now set theSmtp_generic_maps = hash:/etc/postfix/= hash:/etc/postfix/== Static:allWill the mail sent to the local domain be translated as well? There is no setting to send only the
Postfix + courier-IMAP:
Use Postfix to build an email server in Ubuntu
Http://blog.csdn.net/bird_wang/article/details/4225113
Postfixbasicsetuphowto
Https://help.ubuntu.com/community/PostfixBasicSetupHowto
Courier-imap + squirrelmail:
Use squirrelmail in Ubuntu to set up WebMail
Http://blog.csdn.net/bird_wang/article/details/4228222
Squerrilmail introduction and installation Configuration
Http://blog.csdn.
System: Ubuntu 12.04, the email account uses the system account.
The Postfix system itself comes
Dovecot install apt-Get install Dovecot-imapd dovecot-pop3d.
Below is the configuration file
Postfix. Main Configuration
# Myorigin =/etc/mailnamesmtpd_banner = $ myhostname ESMTP $ mail_name (UBUNTU) Biff = No # appending. domain is the Mua's job. append_dot_mydomain = No # delay_warning_time = 4hreadme_directo
This error has been made in recent emails
Java code
APR 18:59:04 Zaphodbeeblebrox postfix/smtpd[10669]: NOQUEUE:reject:RCPT from mail.elmarotter.eu[83.161.154.53]: 554 5.7.1
Later looked at a number of documents, found that postfix upgrade to the 2.10.0 problem,
The release of 2.10 has increased
Java code
Smtpd_relay_restrictions
Java code
* compatibility:adding smtpd_relay_restrictions to main.cf
Hiding the flag (software name and version number) will improve security and, if possible, use a mail server other than SendMail because SendMail runs as root, making it easier to raise the hacker to root.
Sendmail
Look for SendMail's configuration file and edit:
Code:Locate SENDMAIL.CFNano-w/path/to/sendmail.cf
Modify the bold portion of the following code:
Code:smtpgreetingmessage= $j Sendmail $v/$Z; $b
Restart SendMail or overload its configuration
ExperimentYou need to install the DNS service to do domain name resolution before installing the mail system:To install and configure the DNS service, refer to: http://9067358.blog.51cto.com/9057358/1616971To make a mail exchange record on the DNS service:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/5B/3C/wKioL1UC9Qei8XJJAACM4uJu5iQ046.jpg "title=" 1.jpg " alt= "Wkiol1uc9qei8xjjaacm4uju5iq046.jpg"/>After you install DNS , start the service, and the test uses the host command to p
Idea of Sendmail + Postfix:
1. They all belong to different SMTP Server implementations.
2. Use the resend mechanism of Sendmail to applyProgramSendmail sent to the local machine will certainly not be lost, and the local machine can connect to the remote Postfix to ensure the use of the resend mechanism. If you directly connect to adm01c, the failure may cause mail loss.
3. If the application directly co
Found/var/spool/postfix/maildrop This directory occupies more than 10G of space, the Internet to find the same problem, the reason is:Since Linux executes cron, the output and warning information in cron execution scripts will be sent to the Cron owner in the form of a message, and the mail is not sent successfully because SendMail and postfix in the customer's environment are not working properly. All the
both the point (0,0) can only be up or to the right and do not cross the y=x arrival point (A, B) How many total go ...have a formula: C (a+b,min (b))-C (A+b,min (A, B)-1)// /Origami method proves Cattleya number: http://blog.sina.com.cn/s/blog_6917f47301010cno.htmlBracketsTime limit:2000/1000 MS (java/others) Memory limit:65536/65536 K (java/others)Total submission (s): 506 Accepted Submission (s): 120Problem Descriptionwe give the following inductive definition of a "regular
Algorithm training Remove extra brackets time limit: 1.0s memory Limit: 512.0MB problem description Enter a arithmetic expression with parentheses from the keyboard, requiring the removal of the extra parentheses that may be included, and the result is to keep the relative position of the variables and operators in the original expression unchanged and equivalent to the original expression, without requiring simplification. In addition, ' + '-' is not
The parentheses in shell have their special usage, which are summarized as follows:1. brackets after the symbol $The value of $ {A} variable A can be omitted without ambiguity.$ (CMD) command is replaced and the result is the output of Shell Command cmd, which has the same effect as 'cmd'. However, some shell versions do not support command replacement in the form of $ (), such as tcsh.$ (Exp) and 'expr exp 'have the same effect. Calculate the number
Character matching and brackets
The period (.) matches various printed or non-printed characters in the string, except for one character. This exception is the line break (\ n ). The following regular expressions match aac, abc, acc, adc, and so on, as well as a1c, a2c, a-c, and a # c:
/a.c/
To match a string containing a file name, and a period (.) is a component of the input string, add the backslash (\) character before the period in the regular ex
The question of matching JS brackets is a question of matching brackets on codewars.
Question
To determine whether the brackets {}, [], and () in the string match, consider nesting.
Example:
validBraces("(){}[]") // true validBraces("(}") // false validBraces("[(])") // false validBraces("([{}])") // true
Solution
There are only two situati
Tags: des style blog HTTP color Io OS AR
Brackets Sequence
Time limit:1000 ms
Memory limit:65536 K
Special Judge
Description Let us define a regular brackets sequence in the following way:
1. Empty sequence is a regular sequence.
2. If S is a regular sequence, then (s) and [s] are both regular sequences.
3. If a and B are regular sequences
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.