==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
====
求助如何关闭接收时的垃圾过滤,从而让邮件接收的更快。感谢张大大
求助如何关闭接收时的垃圾过滤
系统界面fail2ban报错
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5.1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 6.4
- 与您的问题相关的日志信息:
====
[root@mx ~]#
Message from syslogd@mx at Nov 1 15:28:33 ...
¿<27>fail2ban.CommandAction[1635]: ERROR Invariant check failed. Trying to restore a sane environment
张工,这个信息总是不停的弹出,请问如何解决呀???
每次安装到最后一步,都会有此错误信息
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.95-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Ubuntu 16.04
- 与您的问题相关的日志信息:
====
安装到最后,总有如下错误信息,虽然貌似不影响正常的功能和实际的使用,但是看到错误信心,内心总有一种不愉快的感觉
ERROR: /var/log/clamav/freshclam.log is locked by another process
ERROR: Problem with internal logger (UpdateLogFile = /var/log/clamav/freshclam.log).
docx , xlsx , pptx 阻擋
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
==== ==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):
- 使用的 Linux/BSD 发行版名称及版本号:
- 与您的问题相关的日志信息:
==== ==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.95-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 6.8
- 与您的问题相关的日志信息:
====
mail log紀錄
Nov 2 09:44:20 mail postfix/qmgr[2725]: 9541D2BC006C: from=<Alicehuang@mingching.com.tw>, size=16327, nrcpt=12 (queue active)
Nov 2 09:44:21 mail amavis[10358]: (10358-08) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: N1VWGutoxKL0 , Hits: - , size: 16325 , 557 ms
Nov 2 09:44:21 mail amavis[10202]: (10202-13) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: XcinVWk_pxAr , Hits: - , size: 16325 , 601 ms
Nov 2 09:44:21 mail postfix/smtp[11600]: 9541D2BC006C: to=<bsn@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.36/0/0/0.7, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10358-08 - BANNED: docProps)
Nov 2 09:44:21 mail postfix/smtp[11599]: 9541D2BC006C: to=<bsntc@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.1, delays=0.36/0/0/0.78, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10202-13 - BANNED: docProps)
Nov 2 09:44:21 mail amavis[10358]: (10358-09) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: eFphrPCE2eS5 , Hits: - , size: 16325 , 314 ms
Nov 2 09:44:22 mail amavis[10202]: (10202-14) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: flPaDfazKN2h , Hits: - , size: 16325 , 300 ms
Nov 2 09:44:22 mail postfix/smtp[11600]: 9541D2BC006C: to=<canty@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.5, delays=0.36/0.71/0/0.4, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10358-09 - BANNED: docProps)
Nov 2 09:44:22 mail postfix/smtp[11599]: 9541D2BC006C: to=<hsy6327@yahoo.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.6, delays=0.36/0.78/0.02/0.45, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10202-14 - BANNED: docProps)
Nov 2 09:44:22 mail amavis[10358]: (10358-10) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: cMsPRwdPSBsO , Hits: - , size: 16325 , 378 ms
Nov 2 09:44:22 mail postfix/smtp[11600]: 9541D2BC006C: to=<jerrywang@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=1.9, delays=0.36/1.1/0.01/0.47, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10358-10 - BANNED: docProps)
Nov 2 09:44:22 mail amavis[10202]: (10202-15) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: s3yNrlQaCv95 , Hits: - , size: 16325 , 330 ms
Nov 2 09:44:22 mail postfix/smtp[11599]: 9541D2BC006C: to=<kevinchi@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.1, delays=0.36/1.3/0.01/0.45, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10202-15 - BANNED: docProps)
Nov 2 09:44:22 mail amavis[10358]: (10358-11) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: qxcD0-foyC6Y , Hits: - , size: 16325 , 328 ms
Nov 2 09:44:22 mail amavis[10202]: (10202-16) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: 0HLxoF_MCDEM , Hits: - , size: 16325 , 290 ms
Nov 2 09:44:22 mail postfix/smtp[11600]: 9541D2BC006C: to=<mschang@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.4, delays=0.36/1.6/0/0.43, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10358-11 - BANNED: docProps)
Nov 2 09:44:23 mail postfix/smtp[11599]: 9541D2BC006C: to=<oscaryang@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.4, delays=0.36/1.7/0.01/0.36, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10202-16 - BANNED: docProps)
Nov 2 09:44:23 mail amavis[10358]: (10358-12) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: 5io0mXQd-k-g , Hits: - , size: 16325 , 274 ms
Nov 2 09:44:23 mail postfix/smtp[11600]: 9541D2BC006C: to=<paulhung@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.7, delays=0.36/2/0/0.31, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10358-12 - BANNED: docProps)
Nov 2 09:44:23 mail amavis[10202]: (10202-17) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: Iq4hFK2xRTdE , Hits: - , size: 16325 , 260 ms
Nov 2 09:44:23 mail postfix/smtp[11599]: 9541D2BC006C: to=<pennychiu@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=2.8, delays=0.36/2.1/0/0.38, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10202-17 - BANNED: docProps)
Nov 2 09:44:23 mail postfix/smtpd[11559]: disconnect from unknown[192.168.0.140]
Nov 2 09:44:23 mail amavis[10358]: (10358-13) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: gk9Z4v0rMzO6 , Hits: - , size: 16325 , 364 ms
Nov 2 09:44:23 mail postfix/smtp[11600]: 9541D2BC006C: to=<shining-chen@mingching.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.1, delays=0.36/2.3/0.01/0.43, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10358-13 - BANNED: docProps)
Nov 2 09:44:23 mail amavis[10202]: (10202-18) Blocked BANNED (docProps) {DiscardedInternal} , MYNETS LOCAL [192.168.0.140]:49366 -> , Message-ID: , mail_id: 60NOuFAuDdcA , Hits: - , size: 16325 , 518 ms
Nov 2 09:44:24 mail postfix/smtp[11599]: 9541D2BC006C: to=<v_3682_jack@yahoo.com.tw>, relay=127.0.0.1[127.0.0.1]:10024, delay=3.5, delays=0.36/2.5/0/0.64, dsn=2.7.0, status=sent (250 2.7.0 Ok, discarded, id=10202-18 - BANNED: docProps)
amavisd.conf
use strict;
# a minimalistic configuration file for amavisd-new with all necessary settings
#
# see amavisd.conf-default for a list of all variables with their defaults;
# for more details see documentation in INSTALL, README_FILES/*
# and at http://www.ijs.si/software/amavisd/amavisd-new-docs.html
# COMMONLY ADJUSTED SETTINGS:
# @bypass_virus_checks_maps = (1); # controls running of anti-virus code
# @bypass_spam_checks_maps = (1); # controls running of anti-spam code
# $bypass_decode_parts = 1; # controls running of decoders&dearchivers
#$max_servers = 2; # num of pre-forked children (2..30 is common), -m
$daemon_user = 'amavis'; # (no default; customary: vscan or amavis), -u
$daemon_group = 'amavis'; # (no default; customary: vscan or amavis), -g
$mydomain = "mail.mingching.com.tw"; # = 'example.com'; # a convenient default for other settings
$MYHOME = '/var/spool/amavisd'; # a convenient default for other settings, -H
$TEMPBASE = "$MYHOME/tmp"; # working directory, needs to exist, -T
$ENV{TMPDIR} = $TEMPBASE; # environment variable TMPDIR, used by SA, etc.
$QUARANTINEDIR = "/var/spool/amavisd/quarantine";
# $quarantine_subdir_levels = 1; # add level of subdirs to disperse quarantine
# $release_format = 'resend'; # 'attach', 'plain', 'resend'
# $report_format = 'arf'; # 'attach', 'plain', 'resend', 'arf'
# $daemon_chroot_dir = $MYHOME; # chroot directory or undef, -R
$db_home = "$MYHOME/db"; # dir for bdb nanny/cache/snmp databases, -D
# $helpers_home = "$MYHOME/var"; # working directory for SpamAssassin, -S
$lock_file = "/var/run/amavisd/amavisd.lock"; # -L
$pid_file = "/var/run/amavisd/amavisd.pid"; # -P
#NOTE: create directories $MYHOME/tmp, $MYHOME/var, $MYHOME/db manually
$log_level = 0; # verbosity 0..5, -d
$log_recip_templ = undef; # disable by-recipient level-0 log entries
$do_syslog = 1; # log via syslogd (preferred)
$syslog_facility = 'mail'; # Syslog facility as a string
# e.g.: mail, daemon, user, local0, ... local7
$enable_db = 1; # enable use of BerkeleyDB/libdb (SNMP and nanny)
# $enable_zmq = 1; # enable use of ZeroMQ (SNMP and nanny)
$nanny_details_level = 2; # nanny verbosity: 1: traditional, 2: detailed
$enable_dkim_verification = 1; # enable DKIM signatures verification
$enable_dkim_signing = 1; # load DKIM signing code, keys defined by dkim_key
@local_domains_maps = 1;
@mynetworks = qw( 127.0.0.0/8 [::1] [FE80::]/10 [FEC0::]/10
10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 );
$unix_socketname = "$MYHOME/amavisd.sock"; # amavisd-release or amavis-milter
# option(s) -p overrides $inet_socket_port and $unix_socketname
$inet_socket_port = [10024, 10026, 9998];
# $inet_socket_port = [10024, 10026, 9998];
$policy_bank{'MYNETS'} = { # mail originating from @mynetworks
originating => 1, # is true in MYNETS by default, but let's make it explicit
os_fingerprint_method => undef, # don't query p0f for internal clients
allow_disclaimers => 1, # enables disclaimer insertion if available
};
# it is up to MTA to re-route mail from authenticated roaming users or
# from internal hosts to a dedicated TCP port (such as 10026) for filtering
$interface_policy{'10026'} = 'ORIGINATING';
$policy_bank{'ORIGINATING'} = { # mail supposedly originating from our users
originating => 1, # declare that mail was submitted by our smtp client
allow_disclaimers => 1, # enables disclaimer insertion if available
# notify administrator of locally originating malware
virus_admin_maps => [1],
spam_admin_maps => [1],
warnbadhsender => 1,
# forward to a smtpd service providing DKIM signing service
# forward_method => 'smtp:[127.0.0.1]:10027',
# force MTA conversion to 7-bit (e.g. before DKIM signing)
smtpd_discard_ehlo_keywords => ['8BITMIME'],
# bypass_banned_checks_maps => [1], # allow sending any file names and types
terminate_dsn_on_notify_success => 0, # don't remove NOTIFY=SUCCESS option
};
$interface_policy{'SOCK'} = 'AM.PDP-SOCK'; # only applies with $unix_socketname
# Use with amavis-release over a socket or with Petr Rehor's amavis-milter.c
# (with amavis-milter.c from this package or old amavis.c client use 'AM.CL'):
$policy_bank{'AM.PDP-SOCK'} = {
protocol => 'AM.PDP',
auth_required_release => 0, # do not require secret_id for amavisd-release
};
$sa_tag_level_deflt = 2.0; # add spam info headers if at, or above that level
$sa_tag2_level_deflt = 6.2; # add 'spam detected' headers at that level
$sa_kill_level_deflt = 6.9; # triggers spam evasive actions (e.g. blocks mail)
$sa_dsn_cutoff_level = 10; # spam level beyond which a DSN is not sent
$sa_crediblefrom_dsn_cutoff_level = 18; # likewise, but for a likely valid From
# $sa_quarantine_cutoff_level = 25; # spam level beyond which quarantine is off
$penpals_bonus_score = 8; # (no effect without a @storage_sql_dsn database)
$penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi spam
$bounce_killer_score = 100; # spam score points to add for joe-jobbed bounces
$sa_mail_body_size_limit = 400*1024; # don't waste time on SA if mail is larger
$sa_local_tests_only = 0; # only tests which do not require internet access?
# @lookup_sql_dsn =
# ( ['DBI:mysql:database=mail;host=127.0.0.1;port=3306', 'user1', 'passwd1'],
# ['DBI:mysql:database=mail;host=host2', 'username2', 'password2'],
# ["DBI:SQLite:dbname=$MYHOME/sql/mail_prefs.sqlite", '', ''] );
# @storage_sql_dsn = @lookup_sql_dsn; # none, same, or separate database
# @storage_redis_dsn = ( {server=>'127.0.0.1:6379', db_id=>1} );
# $redis_logging_key = 'amavis-log';
# $redis_logging_queue_size_limit = 300000; # about 250 MB / 100000
# $timestamp_fmt_mysql = 1; # if using MySQL *and* msgs.time_iso is TIMESTAMP;
# defaults to 0, which is good for non-MySQL or if msgs.time_iso is CHAR(16)
$virus_admin = undef; # notifications recip.
$mailfrom_notify_admin = undef; # notifications sender
$mailfrom_notify_recip = undef; # notifications sender
$mailfrom_notify_spamadmin = undef; # notifications sender
$mailfrom_to_quarantine = ''; # null return path; uses original sender if undef
@addr_extension_virus_maps = ('virus');
@addr_extension_banned_maps = ('banned');
@addr_extension_spam_maps = ('spam');
@addr_extension_bad_header_maps = ('badh');
# $recipient_delimiter = '+'; # undef disables address extensions altogether
# when enabling addr extensions do also Postfix/main.cf: recipient_delimiter=+
$path = '/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin';
# $dspam = 'dspam';
$MAXLEVELS = 14;
$MAXFILES = 3000;
$MIN_EXPANSION_QUOTA = 100*1024; # bytes (default undef, not enforced)
$MAX_EXPANSION_QUOTA = 500*1024*1024; # bytes (default undef, not enforced)
$sa_spam_subject_tag = '***Spam*** ';
$defang_virus = 1; # MIME-wrap passed infected mail
$defang_banned = 0; # MIME-wrap passed mail containing banned name
# for defanging bad headers only turn on certain minor contents categories:
$defang_by_ccat{CC_BADH.",3"} = 1; # NUL or CR character in header
$defang_by_ccat{CC_BADH.",5"} = 1; # header line longer than 998 characters
$defang_by_ccat{CC_BADH.",6"} = 1; # header field syntax error
# OTHER MORE COMMON SETTINGS (defaults may suffice):
# $myhostname = 'host.example.com'; # must be a fully-qualified domain name!
# $notify_method = 'smtp:[127.0.0.1]:10025';
# $forward_method = 'smtp:[127.0.0.1]:10025'; # set to undef with milter!
#$final_virus_destiny = D_DISCARD;
#$final_banned_destiny = D_BOUNCE;
#$final_spam_destiny = D_DISCARD; #!!! D_DISCARD / D_REJECT
#$final_bad_header_destiny = D_BOUNCE;
# $bad_header_quarantine_method = undef;
# $os_fingerprint_method = 'p0f:*:2345'; # to query p0f-analyzer.pl
## hierarchy by which a final setting is chosen:
## policy bank (based on port or IP address) -> *_by_ccat
## *_by_ccat (based on mail contents) -> *_maps
## *_maps (based on recipient address) -> final configuration value
# SOME OTHER VARIABLES WORTH CONSIDERING (see amavisd.conf-default for all)
# $warnbadhsender,
# $warnvirusrecip, $warnbannedrecip, $warnbadhrecip, (or @warn*recip_maps)
#
# @bypass_virus_checks_maps, @bypass_spam_checks_maps,
# @bypass_banned_checks_maps, @bypass_header_checks_maps,
#
# @virus_lovers_maps, @spam_lovers_maps,
# @banned_files_lovers_maps, @bad_header_lovers_maps,
#
# @blacklist_sender_maps, @score_sender_maps,
#
# $clean_quarantine_method, $virus_quarantine_to, $banned_quarantine_to,
# $bad_header_quarantine_to, $spam_quarantine_to,
#
# $defang_bad_header, $defang_undecipherable, $defang_spam
# REMAINING IMPORTANT VARIABLES ARE LISTED HERE BECAUSE OF LONGER ASSIGNMENTS
@keep_decoded_original_maps = (new_RE(
qr'^MAIL$', # let virus scanner see full original message
qr'^MAIL-UNDECIPHERABLE$', # same as ^MAIL$ if mail is undecipherable
qr'^(ASCII(?! cpio)|text|uuencoded|xxencoded|binhex)'i,
# qr'^Zip archive data', # don't trust Archive::Zip
));
$banned_filename_re = new_RE(
### BLOCKED ANYWHERE
# qr'^UNDECIPHERABLE$', # is or contains any undecipherable components
qr'^\.(zip|exe-ms|dll)$', # banned file(1) types, rudimentary
# qr'^\.(exe|lha|cab|dll)$', # banned file(1) types
[qr'.\.(doc|docx|xls|xlsx|ptt|pptx)$'i => 0], # <-- '0': allow
### BLOCK THE FOLLOWING, EXCEPT WITHIN UNIX ARCHIVES:
# [ qr'^\.(gz|bz2)$' => 0 ], # allow any in gzip or bzip2
[ qr'^\.(rpm|cpio|tar)$' => 0 ], # allow any in Unix-type archives
qr'.\.(pif|scr)$'i, # banned extensions - rudimentary
# qr'^\.zip$', # block zip type
### BLOCK THE FOLLOWING, EXCEPT WITHIN ARCHIVES:
# [ qr'^\.(zip|rar|arc|arj|zoo)$'=> 0 ], # allow any within these archives
qr'^application/x-msdownload$'i, # block these MIME types
qr'^application/x-msdos-program$'i,
qr'^application/hta$'i,
# qr'^message/partial$'i, # rfc2046 MIME type
# qr'^message/external-body$'i, # rfc2046 MIME type
# qr'^(application/x-msmetafile|image/x-wmf)$'i, # Windows Metafile MIME type
# qr'^\.wmf$', # Windows Metafile file(1) type
# block certain double extensions in filenames
qr'^(?!cid:).*\.[^./]*[A-Za-z][^./]*\.\s*(zip|exe|vbs|pif|scr|bat|cmd|com|cpl|dll)[.\s]*$'i,
# qr'\{[0-9a-f]{8}(-[0-9a-f]{4}){3}-[0-9a-f]{12}\}?'i, # Class ID CLSID, strict
# qr'\{[0-9a-z]{4,}(-[0-9a-z]{4,}){0,7}\}?'i, # Class ID extension CLSID, loose
qr'.\.(exe|vbs|pif|scr|cpl)$'i, # banned extension - basic
# qr'.\.(exe|vbs|pif|scr|cpl|bat|cmd|com)$'i, # banned extension - basic+cmd
# qr'.\.(ade|adp|app|bas|bat|chm|cmd|com|cpl|crt|emf|exe|fxp|grp|hlp|hta|
# inf|ini|ins|isp|js|jse|lib|lnk|mda|mdb|mde|mdt|mdw|mdz|msc|msi|
# msp|mst|ocx|ops|pcd|pif|prg|reg|scr|sct|shb|shs|sys|vb|vbe|vbs|vxd|
# wmf|wsc|wsf|wsh)$'ix, # banned extensions - long
# qr'.\.(asd|asf|asx|url|vcs|wmd|wmz)$'i, # consider also
# qr'.\.(ani|cur|ico)$'i, # banned cursors and icons filename
# qr'^\.ani$', # banned animated cursor file(1) type
# qr'.\.(mim|b64|bhx|hqx|xxe|uu|uue)$'i, # banned extension - WinZip vulnerab.
);
# See http://support.microsoft.com/default.aspx?scid=kb;EN-US;q262631
# and http://www.cknow.com/vtutor/vtextensions.htm
# ENVELOPE SENDER SOFT-WHITELISTING / SOFT-BLACKLISTING
@score_sender_maps = ({ # a by-recipient hash lookup table,
# results from all matching recipient tables are summed
# ## per-recipient personal tables (NOTE: positive: black, negative: white)
# 'user1@example.com' => [{'bla-mobile.press@example.com' => 10.0}],
# 'user3@example.com' => [{'.ebay.com' => -3.0}],
# 'user4@example.com' => [{'cleargreen@cleargreen.com' => -7.0,
# '.cleargreen.com' => -5.0}],
## site-wide opinions about senders (the '.' matches any recipient)
'.' => [ # the _first_ matching sender determines the score boost
new_RE( # regexp-type lookup table, just happens to be all soft-blacklist
[qr'^(bulkmail|offers|cheapbenefits|earnmoney|foryou)@'i => 5.0],
[qr'^(greatcasino|investments|lose_weight_today|market\.alert)@'i=> 5.0],
[qr'^(money2you|MyGreenCard|new\.tld\.registry|opt-out|opt-in)@'i=> 5.0],
[qr'^(optin|saveonlsmoking2002k|specialoffer|specialoffers)@'i => 5.0],
[qr'^(stockalert|stopsnoring|wantsome|workathome|yesitsfree)@'i => 5.0],
[qr'^(your_friend|greatoffers)@'i => 5.0],
[qr'^(inkjetplanet|marketopt|MakeMoney)\d*@'i => 5.0],
),
# read_hash("/var/amavis/sender_scores_sitewide"),
{ # a hash-type lookup table (associative array)
'nobody@cert.org' => -3.0,
'cert-advisory@us-cert.gov' => -3.0,
'owner-alert@iss.net' => -3.0,
'slashdot@slashdot.org' => -3.0,
'securityfocus.com' => -3.0,
'ntbugtraq@listserv.ntbugtraq.com' => -3.0,
'security-alerts@linuxsecurity.com' => -3.0,
'mailman-announce-admin@python.org' => -3.0,
'amavis-user-admin@lists.sourceforge.net'=> -3.0,
'amavis-user-bounces@lists.sourceforge.net' => -3.0,
'spamassassin.apache.org' => -3.0,
'notification-return@lists.sophos.com' => -3.0,
'owner-postfix-users@postfix.org' => -3.0,
'owner-postfix-announce@postfix.org' => -3.0,
'owner-sendmail-announce@lists.sendmail.org' => -3.0,
'sendmail-announce-request@lists.sendmail.org' => -3.0,
'donotreply@sendmail.org' => -3.0,
'ca+envelope@sendmail.org' => -3.0,
'noreply@freshmeat.net' => -3.0,
'owner-technews@postel.acm.org' => -3.0,
'ietf-123-owner@loki.ietf.org' => -3.0,
'cvs-commits-list-admin@gnome.org' => -3.0,
'rt-users-admin@lists.fsck.com' => -3.0,
'clp-request@comp.nus.edu.sg' => -3.0,
'surveys-errors@lists.nua.ie' => -3.0,
'emailnews@genomeweb.com' => -5.0,
'yahoo-dev-null@yahoo-inc.com' => -3.0,
'returns.groups.yahoo.com' => -3.0,
'clusternews@linuxnetworx.com' => -3.0,
lc('lvs-users-admin@LinuxVirtualServer.org') => -3.0,
lc('owner-textbreakingnews@CNNIMAIL12.CNN.COM') => -5.0,
# soft-blacklisting (positive score)
'sender@example.net' => 3.0,
'.example.net' => 1.0,
},
], # end of site-wide tables
});
@decoders = (
['mail', \&do_mime_decode],
# [[qw(asc uue hqx ync)], \&do_ascii], # not safe
['F', \&do_uncompress, ['unfreeze', 'freeze -d', 'melt', 'fcat'] ],
['Z', \&do_uncompress, ['uncompress', 'gzip -d', 'zcat'] ],
['gz', \&do_uncompress, 'gzip -d'],
['gz', \&do_gunzip],
['bz2', \&do_uncompress, 'bzip2 -d'],
['xz', \&do_uncompress,
['xzdec', 'xz -dc', 'unxz -c', 'xzcat'] ],
['lzma', \&do_uncompress,
['lzmadec', 'xz -dc --format=lzma',
'lzma -dc', 'unlzma -c', 'lzcat', 'lzmadec'] ],
['lrz', \&do_uncompress,
['lrzip -q -k -d -o -', 'lrzcat -q -k'] ],
['lzo', \&do_uncompress, 'lzop -d'],
['rpm', \&do_uncompress, ['rpm2cpio.pl', 'rpm2cpio'] ],
[['cpio','tar'], \&do_pax_cpio, ['pax', 'gcpio', 'cpio'] ],
# ['/usr/local/heirloom/usr/5bin/pax', 'pax', 'gcpio', 'cpio']
['deb', \&do_ar, 'ar'],
# ['a', \&do_ar, 'ar'], # unpacking .a seems an overkill
['rar', \&do_unrar, ['unrar', 'rar'] ],
['arj', \&do_unarj, ['unarj', 'arj'] ],
['arc', \&do_arc, ['nomarch', 'arc'] ],
['zoo', \&do_zoo, ['zoo', 'unzoo'] ],
# ['doc', \&do_ole, 'ripole'], # no ripole package so far
['cab', \&do_cabextract, 'cabextract'],
# ['tnef', \&do_tnef_ext, 'tnef'], # use internal do_tnef() instead
['tnef', \&do_tnef],
# ['lha', \&do_lha, 'lha'], # not safe, use 7z instead
# ['sit', \&do_unstuff, 'unstuff'], # not safe
[['zip','kmz'], \&do_7zip, ['7za', '7z'] ],
[['zip','kmz'], \&do_unzip],
['7z', \&do_7zip, ['7zr', '7za', '7z'] ],
[[qw(7z zip gz bz2 Z tar)],
\&do_7zip, ['7za', '7z'] ],
[[qw(xz lzma jar cpio arj rar swf lha iso cab deb rpm)],
\&do_7zip, '7z' ],
['exe', \&do_executable, ['unrar','rar'], 'lha', ['unarj','arj'] ],
);
$sa_debug = 0;
# Set hostname.
$myhostname = "mail.mingching.com.tw";
$localhost_name = $myhostname;
# Set listen IP/PORT.
$notify_method = 'smtp:[127.0.0.1]:10025';
$forward_method = 'smtp:[127.0.0.1]:10025';
@av_scanners = (
#### http://www.clamav.net/
['ClamAV-clamd',
\&ask_daemon, ["CONTSCAN {}\n", "/tmp/clamd.socket"],
qr/\bOK$/, qr/\bFOUND$/,
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);
@av_scanners_backup = (
### http://www.clamav.net/ - backs up clamd or Mail::ClamAV
['ClamAV-clamscan', 'clamscan',
"--stdout --disable-summary -r --tempdir=$TEMPBASE {}", [0], [1],
qr/^.*?: (?!Infected Archive)(.*) FOUND$/ ],
);
#
# Port used to release quarantined mails.
#
$interface_policy{'9998'} = 'AM.PDP-INET';
$policy_bank{'AM.PDP-INET'} = {
protocol => 'AM.PDP', # select Amavis policy delegation protocol
inet_acl => [qw( 127.0.0.1 [::1] )], # restrict access to these IP addresses
auth_required_release => 1, # 0 - don't require secret_id for amavisd-release
#log_level => 4,
#always_bcc_by_ccat => {CC_CLEAN, 'admin@example.com'},
};
# Set default action.
# Available actions: D_PASS, D_BOUNCE, D_REJECT, D_DISCARD.
$final_virus_destiny = D_DISCARD;
$final_banned_destiny = D_DISCARD;
$final_spam_destiny = D_DISCARD;
$final_bad_header_destiny = D_DISCARD;
#########################
# Quarantine mails.
#
# Where to store quarantined mail message:
# - 'local:spam-%i-%m', quarantine mail on local file system.
# - 'sql:', quarantine mail in SQL server specified in @storage_sql_dsn.
# - undef, do not quarantine mail.
# Bad header.
$bad_header_quarantine_method = undef;
#$bad_header_quarantine_method = 'sql:';
#$bad_header_quarantine_to = 'bad-header-quarantine';
# SPAM.
$spam_quarantine_method = undef;
#$spam_quarantine_method = 'sql:';
#$spam_quarantine_to = 'spam-quarantine';
# Virus
$virus_quarantine_to = 'virus-quarantine';
$virus_quarantine_method = 'sql:';
# Banned
$banned_files_quarantine_method = undef;
#$banned_files_quarantine_method = 'sql:';
#$banned_quarantine_to = 'banned-quarantine';
#########################
# Quarantine CLEAN mails.
# Don't forget to enable clean quarantine in policy bank 'MYUSERS'.
#
#$clean_quarantine_method = 'sql:';
#$clean_quarantine_to = 'clean-quarantine';
$sql_allow_8bit_address = 1;
$timestamp_fmt_mysql = 1;
# a string to prepend to Subject (for local recipients only) if mail could
# not be decoded or checked entirely, e.g. due to password-protected archives
#$undecipherable_subject_tag = '***UNCHECKED*** '; # undef disables it
$undecipherable_subject_tag = undef;
# Hope to fix 'nested MAIL command' issue on high load server.
$smtp_connection_cache_enable = 0;
# The default set of header fields to be signed can be controlled
# by setting %signed_header_fields elements to true (to sign) or
# to false (not to sign). Keys must be in lowercase, e.g.:
# 0 -> off
# 1 -> on
$signed_header_fields{'received'} = 0;
$signed_header_fields{'to'} = 1;
# Add dkim_key here.
dkim_key("mingching.com.tw", "dkim", "/var/lib/dkim/mingching.com.tw.pem");
# Note that signing mail for subdomains with a key of a parent
# domain is treated by recipients as a third-party key, which
# may 'hold less merit' in their eyes. If one has a choice,
# it is better to publish a key for each domain (e.g. host1.a.cn)
# if mail is really coming from it. Sharing a pem file
# for multiple domains may be acceptable, so you don't need
# to generate a different key for each subdomain, but you
# do need to publish it in each subdomain. It is probably
# easier to avoid sending addresses like host1.a.cn and
# always use a parent domain (a.cn) in 'From:', thus
# avoiding the issue altogether.
#dkim_key("host1.mingching.com.tw", "dkim", "/var/lib/dkim/mingching.com.tw.pem");
#dkim_key("host3.mingching.com.tw", "dkim", "/var/lib/dkim/mingching.com.tw.pem");
# Add new dkim_key for other domain.
#dkim_key('Your_New_Domain_Name', 'dkim', 'Your_New_Pem_File');
@dkim_signature_options_bysender_maps = ( {
# ------------------------------------
# For domain: mingching.com.tw.
# ------------------------------------
# 'd' defaults to a domain of an author/sender address,
# 's' defaults to whatever selector is offered by a matching key
#'postmaster@mingching.com.tw' => { d => "mingching.com.tw", a => 'rsa-sha256', ttl => 7*24*3600 },
#"spam-reporter@mingching.com.tw" => { d => "mingching.com.tw", a => 'rsa-sha256', ttl => 7*24*3600 },
# explicit 'd' forces a third-party signature on foreign (hosted) domains
"mingching.com.tw" => { d => "mingching.com.tw", a => 'rsa-sha256', ttl => 10*24*3600 },
#"host1.mingching.com.tw" => { d => "host1.mingching.com.tw", a => 'rsa-sha256', ttl => 10*24*3600 },
#"host2.mingching.com.tw" => { d => "host2.mingching.com.tw", a => 'rsa-sha256', ttl => 10*24*3600 },
# ---- End domain: mingching.com.tw ----
# catchall defaults
'.' => { a => 'rsa-sha256', c => 'relaxed/simple', ttl => 30*24*3600 },
} );
# ------------ Disclaimer Setting ---------------
# Uncomment this line to enable singing disclaimer in outgoing mails.
#$defang_maps_by_ccat{+CC_CATCHALL} = [ 'disclaimer' ];
# Program used to signing disclaimer in outgoing mails.
$altermime = '/usr/bin/altermime';
# Disclaimer in plain text formart.
@altermime_args_disclaimer = qw(--disclaimer=/etc/postfix/disclaimer/_OPTION_.txt --disclaimer-html=/etc/postfix/disclaimer/_OPTION_.txt --force-for-bad-html);
@disclaimer_options_bysender_maps = ({
# Per-domain disclaimer setting: /etc/postfix/disclaimer/host1.iredmail.org.txt
#'host1.iredmail.org' => 'host1.iredmail.org',
# Sub-domain disclaimer setting: /etc/postfix/disclaimer/iredmail.org.txt
#'.iredmail.org' => 'iredmail.org',
# Per-user disclaimer setting: /etc/postfix/disclaimer/boss.iredmail.org.txt
#'boss@iredmail.org' => 'boss.iredmail.org',
# Catch-all disclaimer setting: /etc/postfix/disclaimer/default.txt
'.' => 'default',
},);
# ------------ End Disclaimer Setting ---------------
# Reporting and quarantining.
@storage_sql_dsn = (
['DBI:mysql:database=amavisd;host=127.0.0.1;port=3306', 'amavisd', 'xxxxx'],
);
# Lookup for per-recipient, per-domain and global policy.
@lookup_sql_dsn = @storage_sql_dsn;
# Don't send email with subject "UNCHECKED contents in mail FROM xxx".
delete $admin_maps_by_ccat{&CC_UNCHECKED};
# Do not notify administrator about SPAM/VIRUS from remote servers.
$virus_admin = undef;
$spam_admin = undef;
$banned_admin = undef;
$bad_header_admin = undef;
# Num of pre-forked children.
# WARNING: it must match (equal to or larger than) the number set in
# /etc/postfix/master.cf "maxproc" column for the 'smtp-amavis' service.
$max_servers = 2;
# Enable DKIM signing/verification
$enable_dkim_verification = 1;
$enable_dkim_signing = 1;
# Amavisd log level. Verbosity: 0, 1, 2, 3, 4, 5, -d.
$log_level = 0;
# SpamAssassin debugging (require $log_level). Default if off (0).
$sa_debug = 0;
# Amavisd on some Linux/BSD distribution use $banned_namepath_re instead of
# $banned_filename_re, so we define some blocked file types here.
#
# Sample input for $banned_namepath_re:
#
# P=p003\tL=1\tM=multipart/mixed\nP=p002\tL=1/2\tM=application/octet-stream\tT=dat\tN=my_docum.zip
#
# What it means:
# - T: type. e.g. zip archive.
# - M: MIME type. e.g. application/octet-stream.
# - N: suggested (MIME) name. e.g. my_docum.zip.
$banned_namepath_re = new_RE(
# Unknown binary files.
[qr'M=application/(zip|rar|arc|arj|zoo|gz|bz2)(,|\t).*T=dat(,|\t)'xmi => 'DISCARD'],
[qr'T=(exe|exe-ms|lha|cab|dll)(,|\t)'xmi => 'DISCARD'], # banned file(1) types
[qr'T=(pif|scr)(,|\t)'xmi => 'DISCARD'], # banned extensions - rudimentary
[qr'T=ani(,|\t)'xmi => 'DISCARD'], # banned animated cursor file(1) type
[qr'T=(mim|b64|bhx|hqx|xxe|uu|uue)(,|\t)'xmi => 'DISCARD'], # banned extension - WinZip vulnerab.
[qr'M=application/x-msdownload(,|\t)'xmi => 'DISCARD'], # block these MIME types
[qr'M=application/x-msdos-program(,|\t)'xmi => 'DISCARD'],
[qr'M=application/hta(,|\t)'xmi => 'DISCARD'],
[qr'M=(application/x-msmetafile|image/x-wmf)(,|\t)'xmi => 'DISCARD'], # Windows Metafile MIME type
);
# Listen on specified addresses.
$inet_socket_bind = ['127.0.0.1'];
# Selectively disable some of the header checks
#
# Duplicate or multiple occurrence of a header field
$allowed_header_tests{'multiple'} = 0;
# Missing some headers. e.g. 'Date:'
$allowed_header_tests{'missing'} = 0;
######################
# Custom short log template (at log_level 0), add SpamAssassin testing result (Tests: [xxx])
#
# Note: You can find the original log template at the bottom of
# /usr/sbin/amavisd-new.
$log_templ = '
[?%#D|#|Passed #
[? [:ccat|major] |#
OTHER|CLEAN|MTA-BLOCKED|OVERSIZED|BAD-HEADER-[:ccat|minor]|SPAMMY|SPAM|\
UNCHECKED[?[:ccat|minor]||-ENCRYPTED|]|BANNED (%F)|INFECTED (%V)]#
{[:actions_performed]}#
,[?%p|| %p][?%a||[?%l|| LOCAL] [:client_addr_port]][?%e|| \[%e\]] [:mail_addr_decode_octets|%s] -> [%D|[:mail_addr_decode_octets|%D]|,]#
[? %q ||, quarantine: %q]#
[? %Q ||, Queue-ID: %Q]#
[? %m ||, Message-ID: [:mail_addr_decode_octets|%m]]#
[? %r ||, Resent-Message-ID: [:mail_addr_decode_octets|%r]]#
[? %i ||, mail_id: %i]#
, Hits: [:SCORE]#
, size: %z#
[? [:partition_tag] ||, pt: [:partition_tag]]#
[~[:remote_mta_smtp_response]|["^$"]||[", queued_as: "]]\
[remote_mta_smtp_response|[~%x|["queued as ([0-9A-Za-z]+)$"]|["%1"]|["%0"]]|/]#
#, Subject: [:dquote|[:mime2utf8|[:header_field_octets|Subject]|100|1]]#
#, From: [:uquote|[:mail_addr_decode_octets|[:rfc2822_from]]]#
[? [:dkim|sig_sd] ||, dkim_sd=[:dkim|sig_sd]]#
[? [:dkim|newsig_sd] ||, dkim_new=[:dkim|newsig_sd]]#
, %y ms#
[? %#T ||, Tests: \[[%T|,]\]]#
]
[?%#O|#|Blocked #
[? [:ccat|major|blocking] |#
OTHER|CLEAN|MTA-BLOCKED|OVERSIZED|BAD-HEADER-[:ccat|minor]|SPAMMY|SPAM|\
UNCHECKED[?[:ccat|minor]||-ENCRYPTED|]|BANNED (%F)|INFECTED (%V)]#
{[:actions_performed]}#
,[?%p|| %p][?%a||[?%l|| LOCAL] [:client_addr_port]][?%e|| \[%e\]] [:mail_addr_decode_octets|%s] -> [%O|[:mail_addr_decode_octets|%O]|,]#
[? %q ||, quarantine: %q]#
[? %Q ||, Queue-ID: %Q]#
[? %m ||, Message-ID: [:mail_addr_decode_octets|%m]]#
[? %r ||, Resent-Message-ID: [:mail_addr_decode_octets|%r]]#
[? %i ||, mail_id: %i]#
, Hits: [:SCORE]#
, size: %z#
[? [:partition_tag] ||, pt: [:partition_tag]]#
#, Subject: [:dquote|[:mime2utf8|[:header_field_octets|Subject]|100|1]]#
#, From: [:uquote|[:mail_addr_decode_octets|[:rfc2822_from]]]#
[? [:dkim|sig_sd] ||, dkim_sd=[:dkim|sig_sd]]#
[? [:dkim|newsig_sd] ||, dkim_new=[:dkim|newsig_sd]]#
, %y ms#
[? %#T ||, Tests: \[[%T|,]\]]#
]';
#############
1; # insure a defined return
不知道還要修改哪裡?
设定邮件网关
==== ==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:iRedMail-0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):mysql
- 使用的 Linux/BSD 发行版名称及版本号:centos6.5
- 与您的问题相关的日志信息:
==== ov 4 15:40:58 mail postfix/anvil[3393]: statistics: max connection count 2 for (smtp:192.168.1.237) at Nov 4 15:37:33
Nov 4 15:40:58 mail postfix/anvil[3393]: statistics: max cache size 1 at Nov 4 15:30:58
Nov 4 15:41:00 mail postfix/smtpd[3486]: warning: 192.168.1.237: hostname bogon verification failed: Name or service not known
Nov 4 15:41:00 mail postfix/smtpd[3486]: connect from unknown[192.168.1.237]
Nov 4 15:42:08 mail postfix/smtpd[3486]: lost connection after EHLO from unknown[192.168.1.237]
Nov 4 15:42:08 mail postfix/smtpd[3458]: lost connection after EHLO from unknown[192.168.1.237]
Nov 4 15:42:08 mail postfix/smtpd[3486]: disconnect from unknown[192.168.1.237]
Nov 4 15:42:08 mail postfix/smtpd[3458]: disconnect from unknown[192.168.1.237]
Nov 4 15:42:25 mail postfix/smtpd[3458]: warning: 192.168.1.237: hostname bogon verification failed: Name or service not known
Nov 4 15:42:25 mail postfix/smtpd[3458]: connect from unknown[192.168.1.237]
Nov 4 15:42:31 mail postfix/smtpd[3458]: 8D8F2246A1: client=unknown[192.168.1.237]
Nov 4 15:42:31 mail postfix/smtpd[3458]: disconnect from unknown[192.168.1.237]
Nov 4 15:43:43 mail postfix/smtpd[3486]: warning: 192.168.1.237: hostname bogon verification failed: Name or service not known
Nov 4 15:43:43 mail postfix/smtpd[3486]: connect from unknown[192.168.1.237]
Nov 4 15:44:55 mail postfix/smtpd[3486]: lost connection after EHLO from unknown[192.168.1.237]
Nov 4 15:44:55 mail postfix/smtpd[3486]: disconnect from unknown[192.168.1.237]
Nov 4 15:48:16 mail postfix/anvil[3393]: statistics: max connection rate 2/60s for (smtp:192.168.1.237) at Nov 4 15:41:00
Nov 4 15:48:16 mail postfix/anvil[3393]: statistics: max connection count 2 for (smtp:192.168.1.237) at Nov 4 15:41:00
Nov 4 15:48:16 mail postfix/anvil[3393]: statistics: max cache size 1 at Nov 4 15:43:43
公司打算测试邮件防护功能,做了个邮件网关,当我把外网dns记录(通过映射)指向1.237时,mua操作收(imap 143.pop 110 )发(smtp25)邮件,邮件服务器(192.168.0.2)(mta 下的Log显示)都会一直发ehlo包,显示认证失败~ 请问是不是要在服务端设定什么
想在iredmail下同时跑个网站
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9-5.1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):mysql
- 使用的 Linux/BSD 发行版名称及版本号:centos7
- 与您的问题相关的日志信息:
====
由于某种原因,需要在iredmail机器上另外跑个网站 ,请张工指点如何增加基于nginx的配置文件,谢谢
已经知道配置文件会放在/etc/nginx/conf.d 下,且知道网站目录root 会放在/var/html/lists下. 就是不知道配置文件该如何写,参考nginx官网配置,但都测试运行失败,请指点.
只跑80口,不跑443.
your mailbox is now 90% full,please clean up some mails for further
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.95
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):mysql
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.5
- 与您的问题相关的日志信息:暂无
====
your mailbox is now 90% full,please clean up some mails for further incoming mails
已经将相关目录下所有收件全部删除,依然会收到如上邮件,发件人为no-reply@mail.com(我公司域名),不知道这种该如何解决
安裝錯誤訊息
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 7
- 与您的问题相关的日志信息:
====
安裝兩次,出現相同錯誤訊息
*************************************************************************
***************************** WARNING ***********************************
*************************************************************************
* *
* Below file contains sensitive infomation (username/password), please *
* do remember to *MOVE* it to a safe place after installation. *
* *
* * /root/iRedMail-0.9.5-1/config
* *
*************************************************************************
********************** Review your settings *****************************
*************************************************************************
# 出現錯誤訊息
* Storage base directory:
Can't make sub-window at (13,18), size (1,70).
* Mailboxes:
Can't make sub-window at (13,18), size (1,70)./vmail1
* Daily backup of SQL/LDAP databases:
Can't make sub-window at (13,18), size (1,70)./backup
* Store mail accounts in: OpenLDAP
* Web server: Apache
* First mail domain name:
can't make sub-window at (13,18), size (1,70).
* Mail domain admin: postmaster@
can't make sub-window at (13,18), size (1,70).
* Additional components: iRedAdmin Roundcubemail Awstats Fail2ban
< Question > Continue? [y|N]
.. . . . . . 省略 . . . .
packages 安裝
. . . . . . . 省略 . . .. .
unzoo.x86_64 0:4.4-16.el7
下方又有錯誤訊息:
Complete!
********************************************************************
* Start iRedMail Configurations
********************************************************************
[ INFO ] Create self-signed SSL certification files (2048 bits).
[ INFO ] Generate Diffie Hellman Group with openssl, please wait.
[ INFO ] Create required system account: vmail, iredadmin, iredapd.
/root/iRedMail-0.9.5-1/functions/system_accounts.sh: line 12: [: too many arguments
/root/iRedMail-0.9.5-1/functions/system_accounts.sh: line 13: [: too many arguments
/root/iRedMail-0.9.5-1/functions/system_accounts.sh: line 14: [: too many arguments
chown: invalid user: 'vmail:vmail'
chown: invalid user: 'vmail:vmail'
[ INFO ] Configure Apache web server.
[ INFO ] Configure PHP.
[ INFO ] Configure LDAP server: OpenLDAP.
[ INFO ] Setup daily cron job to backup LDAP data with
Can't make sub-window at (13,18), size (1,70)./backup/backup_openldap.sh
/root/iRedMail-0.9.5-1/functions/ldap_server.sh: line 138: [: too many arguments
basename: extra operand 'sub-window'
Try 'basename --help' for more information.
cp: target '(1,70)./backup/backup_openldap.sh' is not a directory
chown: cannot access '(1,70)./backup/backup_openldap.sh': No such file or directory
chmod: cannot access '(1,70)./backup/backup_openldap.sh': No such file or directory
Can't do inplace edit: Can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (13,18), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_openldap.sh: No such file or directory.
Can't do inplace edit: Can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (13,18), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_openldap.sh: No such file or directory.
Can't do inplace edit: Can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (13,18), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_openldap.sh: No such file or directory.
[ INFO ] Configure MySQL database server.
[ INFO ] Setup daily cron job to backup SQL databases with
Can't make sub-window at (13,18), size (1,70)./backup/backup_mysql.sh
/root/iRedMail-0.9.5-1/functions/mysql.sh: line 229: [: too many arguments
cp: target '(1,70)./backup/backup_mysql.sh' is not a directory
chown: cannot access '(1,70)./backup/backup_mysql.sh': No such file or directory
chmod: cannot access '(1,70)./backup/backup_mysql.sh': No such file or directory
Can't do inplace edit: Can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (13,18), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_mysql.sh: No such file or directory.
Can't do inplace edit: Can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (13,18), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_mysql.sh: No such file or directory.
Can't do inplace edit: Can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (13,18), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_mysql.sh: No such file or directory.
Can't do inplace edit: Can't is not a regular file.
Can't do inplace edit: make is not a regular file.
Can't do inplace edit: sub-window is not a regular file.
Can't do inplace edit: at is not a regular file.
Can't do inplace edit: (13,18), is not a regular file.
Can't do inplace edit: size is not a regular file.
Can't open (1,70)./backup/backup_mysql.sh: No such file or directory.
[ INFO ] Configure Postfix (MTA).
postconf: fatal: /etc/postfix/main.cf, line 208-210: missing '=' after attribute name: "Can't make sub-window at (13,18), size (1,70)."
[ INFO ] Configure Dovecot (POP3/IMAP/Managesieve/LMTP/LDA).
cp: target '(1,70)./sieve/dovecot.sieve' is not a directory
chown: invalid user: 'vmail:vmail'
chmod: cannot access '(1,70)./sieve/dovecot.sieve': No such file or directory
chown: invalid user: 'vmail:vmail'
chown: invalid user: 'vmail:vmail'
chown: invalid user: 'vmail:vmail'
[ INFO ] Configure ClamAV (anti-virus toolkit).
[ INFO ] Configure Amavisd-new (interface between MTA and content checkers).
chown: cannot access '(1,70)..pem': No such file or directory
ERROR 1 (HY000) at line 105 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibfUluRf' (Errcode: 13)
ERROR 1 (HY000) at line 146 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibkWSgg2' (Errcode: 13)
ERROR 1 (HY000) at line 147 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibZ8njVO' (Errcode: 13)
ERROR 1 (HY000) at line 197 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibaChfxC' (Errcode: 13)
ERROR 1 (HY000) at line 198 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibl9uqpq' (Errcode: 13)
ERROR 1 (HY000) at line 199 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ib603gve' (Errcode: 13)
ERROR 1 (HY000) at line 201 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibKrinR2' (Errcode: 13)
ERROR 1 (HY000) at line 202 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/iblKLItR' (Errcode: 13)
ERROR 1 (HY000) at line 203 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ib61PjmG' (Errcode: 13)
ERROR 1 (HY000) at line 204 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibDEeavv' (Errcode: 13)
ERROR 1 (HY000) at line 205 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ib05TLYk' (Errcode: 13)
ERROR 1 (HY000) at line 232 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibjxzhpb' (Errcode: 13)
ERROR 1 (HY000) at line 233 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibMpt471' (Errcode: 13)
ERROR 1 (HY000) at line 248 in file: '/root/iRedMail-0.9.5-1/samples/amavisd/amavisd.mysql': Can't create/write to file '/var/tmp/ibr41aDT' (Errcode: 13)
[ INFO ] Configure SpamAssassin (content-based spam filter).
[ INFO ] Configure iRedAPD (postfix policy daemon).
[ INFO ] Configure iRedAdmin (official web-based admin panel).
[ INFO ] Configure Fail2ban (authentication failure monitor).
[ INFO ] Configure Roundcube webmail.
[ INFO ] Configure Awstats (logfile analyzer for mail and web server).
*************************************************************************
* iRedMail-0.9.5-1 installation and configuration complete.
*************************************************************************
/root/iRedMail-0.9.5-1/functions/cleanup.sh: line 299: ${FILE_IREDMAIL_INSTALLATION_DETAILS}: ambiguous redirect
/root/iRedMail-0.9.5-1/functions/cleanup.sh: line 306: ${FILE_IREDMAIL_INSTALLATION_DETAILS}: ambiguous redirect
/root/iRedMail-0.9.5-1/functions/cleanup.sh: line 308: ${FILE_IREDMAIL_LINKS}: ambiguous redirect
/root/iRedMail-0.9.5-1/functions/cleanup.sh: line 314: ${FILE_IREDMAIL_LINKS}: ambiguous redirect
chown: invalid user: 'vmail:vmail'
chmod: cannot access 'Can\'t': No such file or directory
chmod: cannot access 'make': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chmod: cannot access 'at': No such file or directory
chmod: cannot access '(13,18),': No such file or directory
chmod: cannot access 'size': No such file or directory
chmod: cannot access '(1,70)./vmail1/': No such file or directory
chmod: cannot access 'can\'t': No such file or directory
chmod: cannot access 'make': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chmod: cannot access 'at': No such file or directory
chmod: cannot access '(13,18),': No such file or directory
chmod: cannot access 'size': No such file or directory
chmod: cannot access '(1,70)./p/o/s/postmaster-2016.11.08.09.49.00//Maildir/new/details.eml': No such file or directory
chmod: cannot access 'Can\'t': No such file or directory
chmod: cannot access 'make': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chmod: cannot access 'at': No such file or directory
chmod: cannot access '(13,18),': No such file or directory
chmod: cannot access 'size': No such file or directory
chmod: cannot access '(1,70)./vmail1/': No such file or directory
chmod: cannot access 'can\'t': No such file or directory
chmod: cannot access 'make': No such file or directory
chmod: cannot access 'sub-window': No such file or directory
chmod: cannot access 'at': No such file or directory
chmod: cannot access '(13,18),': No such file or directory
chmod: cannot access 'size': No such file or directory
chmod: cannot access '(1,70)./p/o/s/postmaster-2016.11.08.09.49.00//Maildir/new/links.eml': No such file or directory
[ INFO ] Disable SELinux in /etc/selinux/config.
< Question > Would you like to use firewall rules provided by iRedMail?
< Question > File: /etc/firewalld/zones/iredmail.xml, with SSHD port: 9999. [Y|n]y
[ INFO ] Copy firewall sample rules: /etc/firewalld/zones/iredmail.xml.
< Question > Restart firewall now (with SSHD port 9999)? [y|N]y
[ INFO ] Restarting firewall ...
< Question > Would you like to use MySQL configuration file shipped within iRedMail now?
< Question > File: /etc/my.cnf. [Y|n]y
[ INFO ] Copy MySQL sample file: /etc/my.cnf.
[ INFO ] Enable SSL support for MySQL server.
[ INFO ] Updating ClamAV database (freshclam), please wait ...
ERROR: Can't change dir to /var/lib/clamav
********************************************************************
* URLs of installed web applications:
*
* - Roundcube webmail: httpS://mail.l.DOMAIN.com/mail/
*
* - Web admin panel (iRedAdmin): httpS://mail.l.DOMAIN.com/iredadmin/
*
* You can login to above links with below credential:
*
* - Username: postmaster@
can't make sub-window at (13,18), size (1,70).
* - Password:
Can't make sub-window at (13,18), size (1,70).
*
*
********************************************************************
* Congratulations, mail server setup completed successfully. Please
* read below file for more information:
*
* - /root/iRedMail-0.9.5-1/iRedMail.tips
*
* And it's sent to your mail account postmaster@
can't make sub-window at (13,18), size (1,70)..
*
********************* WARNING **************************************
*
* Please reboot your system to enable all mail services.
*
********************************************************************
安装IREDMAIL后每个邮箱的路径中都出现了额外的字符
==== ==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Centos7
- 与您的问题相关的日志信息:无错误日志
====
这两天在虚拟机里安装了最新版的IREDMAIL,安装一切顺利,收发邮件目前也正常了,但就有一个问题,每个用户的邮箱存储路径中都会自动被加上三层以用户名前三个字母命名的文件夹。
例如:postmaster@example.com的邮箱存储路径是:
/var/vmail/vmail1/example.com/p/o/s/postmaster-2016.11.07.13.55.01/
如果是fengru@example.com,则存储路径是:
/var/vmail/vmail1/example.com/f/e/n/fengru-2016.11.07.13.55.01/
我没有改动过配置,就变成了这个样子,不知道问题出在哪里,谢谢。
请教apache 的authldap的写法
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL): OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:ubuntu 16.04
- 与您的问题相关的日志信息:
====
apache中要认证,通过iredmail的LDAP服务
<Location />
AuthType Basic
AuthName "ID and Password"
AuthBasicProvider ldap
AuthLDAPBindDN cn=vmail,dc=mycompany,dc=com
AuthLDAPBindPassword xxxxxxxxxxxxxxxxxxxxxxxx
AuthLDAPUrl "ldap://192.168.1.11/dc=mycompany,dc=com?uid?one" "TLS"
Require valid-user
</Location>
请问以上写法对么?我这里一这样写,网页上登录以后,就报500错误。
apache和iredmail不在同一台服务器上,389端口正常打开着
iredmail服务器上的openldap.log啥都没有,零字节
apache服务器上error.log也没有任何信息,access.log里就说了500错误
求教
DNSBL查询的返回值220.250.64.225代表什么意思?
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Centos7
- 与您的问题相关的日志信息:
postfix/dnsblog[69332]: addr 115.124.20.39 listed by domain zen.spamhaus.org as 220.250.64.225
postfix/postscreen[69496]: DNSBL rank 2 for [64.137.185.126]:50617
postfix/postscreen[69496]: DISCONNECT [64.137.185.126]:50617
====
iredmail默认开启了postfix的postscreen功能进行反垃圾邮件,使用的DNSBL服务器是zen.spamhaus.org,如果发件方服务器IP被列在zen.spamhaus.org的名单中,应该是返回127.0.0.2,但很奇怪,我测试下来,用国内多个个人邮箱(网易、腾讯、阿里云)提供商发送邮件给自己的iredmail邮箱,都被退信了,从maillog中看到,zen.spamhaus.org返回的是220.250.64.225而不是127.0.0.2,但postscreen功能还是生效了,断开了对方服务器的连接,因此发件方显示被退信。
请问这是什么情况?返回值220.250.64.225是什么意思?发件服务器应该不是垃圾邮件服务器,但从zen.spamhaus.org查询确实返回了值,虽然不是127.0.0.2,很是困扰,召唤高手解答,谢谢!
如何建立反垃圾邮件白名单
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.0,iredapd:1.6.0
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS6.5
- 与您的问题相关的日志信息:
====
张工:因为现在反垃圾邮件spamassassin会将一些正常邮件标记为垃圾邮件(打上[SPAM]标签),我想通过增加反垃圾邮件白名单,使spamassassin不对白名单里的域进行反垃圾邮件扫描。我想请问下这个要怎么做。
是否是通过启用amavisd_wblist.py插件来实现,如果是,我查看了下脚本中写的说明文档,但是对配置上还是有些疑惑:
# How to use this plugin:
#
# *) Enable `@lookup_sql_dsn` in Amavisd config file.
#
# *) Set Amavisd lookup SQL database related parameters (amavisd_db_*) in
# iRedAPD config file `settings.py`, and enable this plugin.
#
# *) Enable iRedAPD in Postfix `smtpd_recipient_restrictions`.
#
# *) Enable this plugin in iRedAPD config file (/opt/iredapd/settings.py).
# *) Restart both iRedAPD and Postfix services.
1.Enable `@lookup_sql_dsn` in Amavisd config file.
# @lookup_sql_dsn =
# ( ['DBI:mysql:database=mail;host=127.0.0.1;port=3306', 'user1', 'passwd1'],
# ['DBI:mysql:database=mail;host=host2', 'username2', 'password2'],
# ["DBI:SQLite:dbname=$MYHOME/sql/mail_prefs.sqlite", '', ''] );
# @storage_sql_dsn = @lookup_sql_dsn; # none, same, or separate database
# @storage_redis_dsn = ( {server=>'127.0.0.1:6379', db_id=>1} );
# $redis_logging_key = 'amavis-log';
# $redis_logging_queue_size_limit = 300000; # about 250 MB / 100000
...
@lookup_sql_dsn = @storage_sql_dsn;
我在我的amavisd.conf文件中找到两处关于lookup_sql_dsn参数的内容,是要把以下配置前的注释都去掉吗?但是数据库、账号和密码应该对应填什么?是否是填写第二步中对应的amavisd_db_name、amavisd_db_user、amavisd_db_password
# @lookup_sql_dsn =
# ( ['DBI:mysql:database=mail;host=127.0.0.1;port=3306', 'user1', 'passwd1'],
# ['DBI:mysql:database=mail;host=host2', 'username2', 'password2'],
# ["DBI:SQLite:dbname=$MYHOME/sql/mail_prefs.sqlite", '', ''] );
2.Set Amavisd lookup SQL database related parameters (amavisd_db_*) in iRedAPD config file `settings.py`, and enable this plugin.
plugins = ["reject_null_sender", "amavisd_message_size_limit", "amavisd_wblist", "sql_alias_access_policy"]
...
# For Amavisd policy lookup
amavisd_db_server = "127.0.0.1"
amavisd_db_port = "3306"
amavisd_db_name = "amavisd"
amavisd_db_user = "amavisd"
amavisd_db_password = "xxxx"
以上是settings.py文件中的默认参数,是否还需要做其他操作?
3.Enable iRedAPD in Postfix `smtpd_recipient_restrictions`.
smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/MYRules/Mail_recipients,reject_unknown_sender_domain, reject_unknown_recipient_domain, reject_non_fqdn_sender, reject_non_fqdn_recipient, reject_unlisted_recipient, check_policy_service inet:127.0.0.1:7777, permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
以上是main.cf文件中smtpd_recipient_restrictions参数的配置,是否需要调整
4.Enable this plugin in iRedAPD config file (/opt/iredapd/settings.py).
这个是否是对应着第二步的plugins = ["reject_null_sender", "amavisd_message_size_limit", "amavisd_wblist", "sql_alias_access_policy"],还是有其他什么需要配置。
5.Restart both iRedAPD and Postfix services.
配置完后我要如何新增并管理我的白名单?
出现一件关于fail2ban的冏事,大量同事IP地址被封,求如何解决
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.95-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:ubuntu 16.04
- 与您的问题相关的日志信息:
====
出现一件关于fail2ban的冏事,大量同事IP地址被封
原因是公司邮件服务器变更,所有的同事的密码都重置了,这样,好多人手机上密码都是错的。当然他们还没来得及更新。但是,由于手机反复登录不成功,fail2ban就把他们的IP给封了。
不知道哪里可以重置fail2ban的,删除全部已经封的IP
或者暂时停掉fail2ban
急。
关于关闭php.ini里php相关功能的问题
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:Centos7.2
- 与您的问题相关的日志信息:
====
张工 您好!
iremail装好后,php.ini里关闭了好多php功能
disable_functions = apache_setenv,posix_uname,eval,pcntl_wexitstatus,posix_getpwuid,xmlrpc_entity_decode,pcntl_wifstopped,pcntl_wifexited,proc_close,pcntl_wifsignaled,phpAds_XmlRpc,pcntl_strerror,ftp_exec,pcntl_wtermsig,mysql_pconnect,php_uname,proc_nice,pcntl_sigtimedwait,posix_kill,pcntl_sigprocmask,fput,phpinfo,system,phpAds_remoteInfo,ftp_login,inject_code,posix_mkfifo,highlight_file,escapeshellcmd,show_source,pcntl_wifcontinued,fp,pcntl_alarm,pcntl_wait,ini_alter,exec,posix_setpgid,parse_ini_file,ftp_raw,curl_exec,pcntl_waitpid,pcntl_getpriority,ftp_connect,pcntl_signal_dispatch,escapeshellarg,pcntl_wstopsig,apache_child_terminate,ini_restore,ftp_put,passthru,proc_terminate,posix_setsid,pcntl_signal,pcntl_setpriority,proc_get_status,phpAds_xmlrpcEncode,proc_open,pcntl_exec,ftp_nb_fput,ftp_get,phpAds_xmlrpcDecode,pcntl_sigwaitinfo,shell_exec,pcntl_get_last_error,ftp_rawlist,curl_multi_exec,pcntl_fork,posix_setuid
打开phpmyadmin会提示找不到php_uname,请问我如果我打开这些功能,对邮件服务器运行有何影响。
谢谢。
SOGo是否可以关闭WebMail功能,只提供CARDDAV功能?
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Centos7
- 与您的问题相关的日志信息:无错误日志
====
既然已经有了RoundCube作为WebMail,SOGo的WebMail功能就有些鸡肋了,是否可以更改配置,关闭SOGo的WebMail功能,只提供CARDDAV、CALDAV等功能?
foxmail 错误信息:server reply: 504 5.5.2
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:iRedMail-0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP,MySQL
- 使用的 Linux/BSD 发行版名称及版本号:CentOS 6.5
- 与您的问题相关的日志信息:
====
用foxmail邮件管理客户端发信测试提示错误信息:Please check the email <postmaster@XXXX.com>, server reply: 504 5.5.2 <lenovo-PC>: Helo command rejected: need fully-qualified hostname
[root@mail ~]# tail /var/log/maillog
Nov 13 13:42:04 instance-7uy9016a postfix/anvil[14640]: statistics: max cache size 1 at Nov 13 13:38:34
Nov 13 16:30:12 instance-7uy9016a postfix/smtpd[14962]: warning: 110.89.18.210:hostname 210.18.89.110.broad.pt.fj.dynamic.163data.com.cn verification failed: Name or service not known
Nov 13 16:30:12 instance-7uy9016a postfix/smtpd[14962]: connect from unknown[110.89.18.210]
Nov 13 16:30:12 instance-7uy9016a postfix/smtpd[14962]: setting up TLS connection from unknown[110.89.18.210]
Nov 13 16:30:13 instance-7uy9016a postfix/smtpd[14962]: Anonymous TLS connection established from unknown[110.89.18.210]: TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)
Nov 13 16:30:13 instance-7uy9016a postfix/smtpd[14962]: NOQUEUE: reject: RCPT from unknown[110.89.18.210]: 504 5.5.2 <because>: Helo command rejected: need fully-qualified hostname; from=<rong@jpmoer.com> to=<postmaster@jpmoer.com> proto=ESMTP helo=<because>
Nov 13 16:30:17 instance-7uy9016a postfix/smtpd[14962]: disconnect from unknown[110.89.18.210]
Nov 13 16:33:37 instance-7uy9016a postfix/anvil[14964]: statistics: max connection rate 1/60s for (smtp:110.89.18.210) at Nov 13 16:30:12
Nov 13 16:33:37 instance-7uy9016a postfix/anvil[14964]: statistics: max connection count 1 for (smtp:110.89.18.210) at Nov 13 16:30:12
Nov 13 16:33:37 instance-7uy9016a postfix/anvil[14964]: statistics: max cache size 1 at Nov 13 16:30:12
[root@mail ~]# iptables -L -n
Chain INPUT (policy ACCEPT)
target prot opt source destination
f2b-roundcube tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993 ,4190
f2b-sshd tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 22
f2b-sshd-ddos tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 22
f2b-postfix tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4 190
f2b-dovecot tcp -- 0.0.0.0/0 0.0.0.0/0 multiport dports 80,443,25,587,110,995,143,993,4 190
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain f2b-dovecot (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain f2b-postfix (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain f2b-roundcube (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain f2b-sshd (1 references)
target prot opt source destination
REJECT all -- 190.4.63.56 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 91.224.161.69 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 120.205.12.219 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 123.31.34.141 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 222.186.34.76 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 124.232.156.78 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 123.235.2.236 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 212.83.136.68 0.0.0.0/0 reject-with icmp-port-unreachable
REJECT all -- 218.87.109.245 0.0.0.0/0 reject-with icmp-port-unreachable
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Chain f2b-sshd-ddos (1 references)
target prot opt source destination
RETURN all -- 0.0.0.0/0 0.0.0.0/0
Outlook2013中IMAP方式已发送邮件、已删除邮件等文件夹注册失败
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Centos7
- 与您的问题相关的日志信息:无错误日志
====
我的理解,在/etc/dovecot/dovecot.conf中通过配置namespace实现IMAP中的已发送邮件、已删除邮件等保存在服务器上。其中的mailbox区块逐一配置IMAP文件夹,并通过special_use参数指定该文件夹的用途(按照RFC 6154),auto参数设置为subscribe表明第一次通过IMAP连接时自动创建该文件夹并注册其用途(让邮件客户端可以查找到)。
以“已发送邮件”为例,安装完iredmail的默认配置中,设置一个mailbox名为Sent,auto=subcribe,special_use=\Sent。
namespace {
type = private
separator = /
prefix =
inbox = yes
mailbox Sent {
auto = subscribe
special_use = \Sent
}
}
当通过foxmail以IMAP方式连接到服务器后,服务器自动在用户邮箱存储路径Maildir文件夹下创建Sent文件夹,foxmail自动映射该文件夹为“已发送邮件”。
但是,如果通过Outlook2010配置IMAP,服务器也自动创建了Sent文件夹,但Outlook2010没有映射该文件夹为“已发送邮件”,而是自行在用户邮箱存储路径Maildir文件夹下创建了一个名为“.&XfJT0ZABkK5O9g-”的文件夹,并将其映射为“已发送邮件”。
为此,我将/etc/dovecot/dovecot.conf中的Mailbox Sent更改为中文的“已发送邮件”,其他设置保持不变,删除用户邮箱文件夹,重启DOVECOT,再用Outlook2010重新连接,服务器也自动创建了“.&XfJT0ZABkK5O9g-”文件夹,并且Outlook2010也将其映射为已发送邮件了。
namespace {
type = private
separator = /
prefix =
inbox = yes
mailbox 已发送邮件 {
auto = subscribe
special_use = \Sent
}
}
Outlook2010是正常了,foxmail在这种设置下也是正常的,但是当我尝试用Outlook2013配置IMAP的时候,问题又来了,Outlook2013没有自动将“.&XfJT0ZABkK5O9g-”文件夹映射为“已发送邮件”,而是在客户端生成了一个“已发送邮件(仅限于此计算机)”的文件夹,已发送邮件会保存到该文件夹中,但该文件夹并不位于IMAP服务器上,效果就类似于POP3方式配置的情况了。
不知道大家在使用Outlook配置邮箱的时候有没有遇到过这样的问题,是怎么解决的,请指教,谢谢。
安装到mysql的时候有报错
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.9.5-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):MySQL
- 使用的 Linux/BSD 发行版名称及版本号:centos 6.8
- 与您的问题相关的日志信息:ERROR :Access denied for user 'root'@'localhost' (using password: YES)
====
原服务器上装的一键lnmp,跑着一个论坛,现在另外在装iredmail时到最后安装mysql一步有报错提示,装完之后无法进WEB界面,提示说什么数据库错误
翻之前的帖子好像有人说在安装的时候可以指定mysql的密码,请教具体是怎么做的呢?
如何设置某些用户发送和接收内外邮件权限
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.8.7
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:Ubuntu14.04
- 与您的问题相关的日志信息:
====
如何设置某些用户不能发送和接收外邮,只能发送和接收内部邮件?
求一种linux下命令行发邮件的办法
==== 必填信息。没有填写将不予回复 ====
- iRedMail 版本号:0.95-1
- 使用哪个数据库存储用户帐号(OpenLDAP,MySQL,PostgreSQL):OpenLDAP
- 使用的 Linux/BSD 发行版名称及版本号:16.04
- 与您的问题相关的日志信息:
====
以前通过某种SMTP服务器发邮件,我们一般使用sendmail或者mailx命令。
但是现在怎么弄都不行,比如:
echo mailtext | /usr/bin/sendemail -u "mailtitle" -f me@mycompany.com -t someone@163.com -s 192.168.1.11 -xu my@mycompany.com -xp xxxxxxx
192.168.2.11就是一个iredmail服务器
上述写法返回的必定是
NOTICE => Authentication not supported by the remote SMTP server!
WARNING => Received: 504 5.5.2 <qz-server-01>: Helo command rejected: need fully-qualified hostname
不知道张工熟悉这些命令不,我哪里选项没有用对?或者有什么其他简便的办法可以让我在linux(ubuntu)下直接打个命令发邮件?