iRedMail维护笔记

– iRedMail 版本号:0.8.6
– 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
– 使用的 Linux/BSD 发行版名称及版本号:Ubuntu 12.04.4 LTS

2014-12-10 删除指定大小、指定日期前的邮件
How can I delete or arhive mail older than X months ?

# Find files older than 7 days.
find /var/vmail/vmail1 -ctime +7

# DELETE files older than 7 days, and print the name of each file it deletes.
find /var/vmail/vmail1 -ctime +7 -exec rm -f {} \;

查找当前目录及子目录下文件大小大于10M的所有文件
# find . -size +10000000c
-size:表示文件大小,+表示大于某个数,-表示小于某个数。c表示单位是字节,你可以将c换成k,M,G。

#DELETE files bigger than 50 Mb.
find /var/vmail/vmail1 -size +50M -exec rm -f {} \;

2014-12-16 自动转发域内用户A邮件至B邮箱

Email forwarding with iRedMail – How to?

登入用户A的Webmail-Settings-Fliter,新建转发规则。

  • 将邮件转发至:A邮箱不保存源邮件
  • 发送复制邮件至:A邮箱保存副本

2015-01-29  简单群邮件的实现
SQL: Create an mail alias account with SQL command line

mysql>use vmail;
mysql>insert into alias (address,goto,domain) values ('test@1980th.com','user1@1980th.com,user2@1980th.com,user3@1980th.com','1980th.com');

群邮件地址可在phpmyadmin中删除。

2015-06-09 HELO/EHLO;HRP limit exceeded

退信信息:
#5.7.1 smtp;554 5.7.1<>:Recipient address rejected:Invalid HELO/EHLO;HRP limit exceeded> #SMTP#

解决:“Check your SQL table “cluebringer.checkhelo”, there’s one record with “name=Enable HELO/EHLO check”, please update the value of column ‘usehrp’ to 0”

Published by

TNT

追随大自然的指引。

One thought on “iRedMail维护笔记”

Leave a Reply

Your email address will not be published. Required fields are marked *