Postfix配置QA
显示信件內容: postcat -q Queue_ID
刪除各別信件:postsuper -d Queue_ID
全部刪除: postsuper -d ALL
扣住信件: postsuper -h Queue_ID
回复: postsuper -H Queue_ID
重新排程:
postsuper -r Queue_ID
postsuper -r ALL
清除信件:
postqueue -f (全部)
postqueue -s 主机名称(个别对象)
要查看Postfix的当前主要配置文件的存放路径:
postconf -n
系统日志:tail -f /var/log/messages
邮件日志:tail -f /var/log/maillog
clamd相关: tail -f /var/log/clamav/clamd.log tail -f /var/log/clamav/freshclam.log
maildrop相关:tail -f /var/log/maildrop.log
apache相关:tail -f /usr/local/httpd/logs/error_log tail -f /usr/local/httpd/logs/suexec_log
mysql相关: tail -f /usr/local/mysql/data/linux.linux.com.err
测试amavisd: amavisd -d config debug-sa
测试spam: spamassassin -D --lint
测试maildrop: maildrop -V 10 -d [email]test@test.com[/email]
问题一:
Q Aug 7 22:26:22 mail postfix/smtpd[16829]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms Aug 7 22:26:22 mail postfix/smtpd[16829]: fatal: no SASL authentication mechanisms Aug 7 22:26:23 mail postfix/master[16825]: warning: process /usr/libexec/postfix/smtpd pid 16829 exit status 1 Aug 7 22:26:23 mail postfix/master[16825]: warning: /usr/libexec/postfix/smtpd: bad command startup -- throttling Aug 7 22:28:06 mail postfix/smtpd[16830]: warning: xsasl_cyrus_server_get_mechanism_list: no applicable SASL mechanisms Aug 7 22:28:06 mail postfix/smtpd[16830]: fatal: no SASL authentication mechanisms Aug 7 22:28:07 mail postfix/master[16825]: warning: process /usr/libexec/postfix/smtpd pid 16830 exit status 1 |
A ln -s /usr/local/lib/sasl2 /usr/lib/sasl2 |
问题二:
Q Jan 15 20:24:43 localhost postfix/smtpd[3048]: warning: SASL authentication problem: unable to open Berkeley db /etc/sasldb2: No such file or directory |
A 系统已经安装sasl-cyrus 删除掉,然后编译重装 |
问题三:
Q install_driver(mysql) failed: Can't locate DBD/mysql.pm in @INC (@INC contains: |
A [root@redhat tmp]# tar zxvf DBD-mysql-3.0008.tar.gz 重新安装 |
问题四:
Q Can't chdir to /home/mailbox//Maildir, No such file or directory |
A 不能进入邮件目录,请先在extman后台建立postmaster用户 |
问题五:
Q SELECT username, password, "", '1001', '1001', concat('/var/mailbox/',maildir), "", "", username, "" FROM mailbox WHERE username = "[email]test@test.com[/email]" maildrop: Timeout quota exceeded. |
A 请检查/usr/local/authlib/etc/authlib/mysqlauthrc的quota配置项 |
问题六:
Q sh: /usr/sbin/sendmail: No such file or directory |
A ln -s /usr/local/postfix-2.2.8/src/sendmail/sendmail /usr/sbin/sendmail |
问题八:
Q error while loading shared libraries: libstdc++.so.5: cannot open shared object file: No such file or directory |
A [root@linux tmp]# rpm -ivh compat-libstdc++-33-3.2.3-47.3.i386.rpm |
问题九:
Q Starting mail statistics grapher: mailgraph_ext Can't locate RRDs.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi |
A ln -sv /usr/local/rrdtool/lib/perl/5.8.5/i386-linux-thread-multi/RRDs.pm \ /usr/lib/perl5/5.8.5/i386-linux-thread-multi/ |
问题十:
Q Can't locate loadable object for module RRDs in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi |
A ln -sv /usr/local/rrdtool/lib/perl/5.8.5/i386-linux-thread-multi/auto/RRDs/RRDs.so \ /usr/lib/perl5/5.8.5/i386-linux-thread-multi/ |
问题十一:
Q Can't load '/usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/GD/GD.so' for module GD: libgd.so.2: cannot open shared object file: No such file or directory at /usr/lib/perl5/5.8.5/i386-linux-thread-multi/DynaLoader.pm line 230., referer: [url]http://192.168.44.200/extman/cgi/index.cgi[/url] |
A [root@linux tmp]# vi /etc/ld.so.conf [root@linux tmp]# less /etc/ld.so.conf include ld.so.conf.d/*.conf /usr/X11R6/lib /usr/local/mysql/lib /usr/local/BerkeleyDB/lib /usr/local/authlib/lib/courier-authlib /usr/local/sasl2/lib /usr/local/sasl2/lib/sasl2 /usr/local/clamav/lib /usr/local/lib /usr/local/authlib/lib/courier-authlib /usr/local/gd/lib /usr/local/jpeg/lib /usr/local/fontconfig/lib /usr/local/freetype2/lib /usr/local/png/lib [root@linux tmp]# ldconfig -v |
问题七:
Q Jan 28 05:04:56 linux postfix/pickup[13892]: DEBD68075: uid=0 from=<root> Jan 28 05:04:56 linux postfix/cleanup[14026]: DEBD68075: hold: header Received: by linux.test.com (Postfix, from userid 0)??id DEBD68075; Mon, 28 Jan 2008 05:04 :56 +0800 (CST) from local; from=<[email]root@test.com[/email]> Jan 28 05:04:56 linux postfix/cleanup[14026]: DEBD68075: message-id=<20080127210 [email]456.DEBD68075@linux.test.com[/email]> |
A 不要将amavisd和MailScanner装在一起 ##可能有其它解决办法吧 |
Q httpd: Syntax error on line 99 of /etc/httpd/httpd.conf: Cannot load /usr/local/\httpd/modules/libphp5.so into server: /usr/local/\httpd/modules/libphp5.so: cannot restore segment prot after reloc: Permission denied |
A 1:禁用selinux 2:chcon -t texrel_shlib_t /usr/local/apache2/modules/*.so |
Q Jun 20 15:29:08 mail authdaemond: authldaplib: sysusername=<null>, sysuserid=1001, sysgroupid=1001, homedir=/var/mailbox/test.com/test01, address=test01@test.com, fullname=test01, maildir=test.com/test01/Maildir/, quota=5242880S, options=<null> Jun 20 15:29:08 mail authdaemond: authldaplib: clearpasswd=<null>, passwd=$1$8pBM6cXc$Va6UkybwOdSyExU82pQ1A0 Jun 20 15:29:08 mail authdaemond: rebinding with DN 'mail=test01@test.com,virtualDomain=test.com,o=extmailAccount,dc=test.com' to validate password Jun 20 15:29:08 mail authdaemond: authentication bind failed, invalid credentials |
A vi /etc/authlib/authldaprc 72 #LDAP_AUTHBIND 1 |
Q pop3d: chdir test.com/test01: No such file or directory |
A vi /etc/authlib/authldaprc #LDAP_MAILDIR mailMessageStore |
Q configure: error: Please fix the library issues listed above and try again. |
A cp /usr/local/png/lib/pkgconfig/libpng.pc /usr/lib/pkgconfig/ |
问题十六:
Q Can't locate GD.pm in @INC (@INC contains: |
A 安装GD-2.35.tar.gz |
问题十七:
Q 怎样查看postfix日志成功接收到邮件:(交货到邮件目录) |
A cat /var/log/maillog |grep "delivered to maildir" cat /var/log/maillog |grep "delivered to maildir" | egrep -o "(\w+)([@]{1}\w+[.]{1,})(\w+)" |
问题十八:
Q 怎样取当天日志: |
A cat /var/log/maillog | egrep "`data | awk "`'{print ""$2" "$3""}'`" |
问题十九:
Q 怎样取指定日期日志: |
A cat /var/log/maill | grep "^Sep\ 25" | egrep "reject|warning|error|fatal|panic" | more |
慢慢再增加吧.
转载于:https://blog.51cto.com/waringid/58822
Postfix配置QA相关推荐
- postfix配置积累(不断的积累)
postfix 配置 1.mail_name 默认是Postfix.在收件人信头可以查看,如果不想让别人知道你是用postfix发的,则可以改成其它名字,如:postconf -e mail_name ...
- Postfix配置文档
环境:RedHat Linux+Postfix+Cyrus-sasl+Dovecot+Stunnel 在安装Linux时,如果选择全部安装的话,Postfix与Dovecot以及Stunnel将会自动 ...
- centos6 postfix配置
1.设置主机名 [root@www ~]# vim /etc/sysconfig/network [root@www ~]# hostname mail.baidu.com [root@www ~]# ...
- Postfix 配置参数速查
本附录按照字母顺序,列出可在main.cf配置文件里设定的参数,并简略说明各参数的意义或用途.本附录只能算是postfix参数的"速查参考". 所有参数都有一个默认值(虽然某些默认 ...
- 今天终于完成对postfix配置的修改
上次说到的,对于配置postfix用postfixadmin来管理Extmail,感觉不爽,所以想用Extman来管理Extmail今天呢终于完成了,修改,其实大概都差不多,好像没碰到什么问题,嘻,所 ...
- Postfix配置QQ邮箱发邮件
配置QQ邮箱发邮件 1.这里使用了QQ邮箱的SMTP,需要做以下配置 2.qq邮箱通过生成授权码来设置密码 3.关闭服务器的sendmail服务,开启postfix服务 4.创建证书文件 root ...
- Linux学习-postfix配置
本文基本centos6.10,postfix2.11.11 postfix基本配置 myhostname:定义主机名,判断当前主机工作在什么位置,跟mx记录对应的主机名称一致 mydomain:自己所 ...
- Postfix配置多域名
1.查找用户和组 #grep postfix /etc/group #grep postfix /etc/passwd 安装postfix #yum -y install postfix 2.先备份m ...
- 安装与配置postfix邮件系统
一. postfix概述 postfix是Wietse Venema在IBM的GPL协议之下开发的MTA(邮件传输 代理)软件.下面一段话摘自postfix的官方站点( http://www.post ...
最新文章
- linux ora27040,使用RMAN recover database时遇到ORA-01119 ORA-27040 错误的解决办法
- Android GLSurfaceView.Renderer 类 onDrawFrame 方法的刷新机制
- Python协程--迭代器
- jquery.eq()
- 关于Promise详解
- java面试会问到的问题吗_[转载]java面试中经常会被问到的一些算法的问题
- 【渝粤教育】国家开放大学2019年春季 0755-22T学前儿童艺术教育 参考试题
- 14.6.4 Configuring the Memory Allocator for InnoDB 配置InnoDB 内存分配器
- 机器人周志_机器人教学的意义
- Git清理历史大文件
- c 系统语言改为中文,主编设置win7系统英文版改成中文语言的操作技巧
- 2019最实用的8种精准微信引流方法教程
- DxO PhotoLab 4 for Mac(RAW图片处理工具)
- 强势图解AC自动机 --- 转载
- java mysql SSM实现的校园门户平台网站系统源码+含开题报告与需求分析+包安装配置
- 2022-2028全球转定子均质机行业调研及趋势分析报告
- 学会享受努力奋斗的过程
- 八、Java面向对象编程(类、对象、方法、重载、可变参数、作用域、构造器、this本质)
- 为何一页的本科简历可以打败研究生
- Java+JSP基于ssm驾校预约管理系统-计算机毕业设计
热门文章
- OC中字符串的提取与替换-四种不同方法实现
- 使用shell/python获取hostname/fqdn释疑(转)
- 不要轻易在数据库(尤其是线上数据库)执行,update、delete数据 !!!
- IAP升级功能编写初期的一些困惑与疑问---完毕功能后的总结
- C#:把发表的时间改为几个月,几天前,几小时前,几分钟前,或几秒前
- Q87:间接光照(Indirect Illumination)的高光反射(Glossy Reflcetion)
- 问题五十九:怎么求一元六次方程在区间内的所有不相等的实根(1)
- 问题五十七:怎么用ray tracing画translational sweeping图形
- 问题三十六:ray tracing中的Inverse Mapping(0)——概要
- 34(数组). 在排序数组中查找元素的第一个和最后一个位置