我在main.cf设置了default_privs=myuser ,这是一个perl脚本,在这个用户的上下文中执行。 在perl脚本中,我添加了一些debugging来打印出用户: my $exec_username = $ENV{LOGNAME} || $ENV{USER} || getpwuid($<); $logger->info("Script is running in context of user:".$exec_username); 如果脚本是由传入的电子邮件触发的,则可以看到脚本正在用户“myuser”的上下文中运行。 在脚本的后面,我尝试复制一个文件。 我使用反引号从STDOUT和STDERR获得输出: my $copycmd = "cp -f -v '".$final_tiff."' '".$fax_file_name."'"; $logger->info("Copy command: ".$copycmd); my $copylog=`$copycmd 2>&1`; $logger->info($copylog); 但是这给了我: cp: cannot create regular file … : Permission denied 用户“myuser”是在glusterfs文件共享上拥有rw权限的组的一部分。 正如你在代码中看到的,我也打印出复制命令。 如果我使用相同的命令并在shell中运行它,如: su myuser cp … … 该文件被复制。 […]
我有一个数据库,其中有一个用户名,密码和密码盐。 密码使用SHA512散列。 我的用户数据库中的数据如下所示: user = testuser password_hash = 4acf9dc364843d1adfadfadf42de7d5707b791cc3ee8a2013f15efa8bdb password_salt = QYhZ47zsQA = 我正在尝试使用dovecot sql身份validation和SSHA512对此数据库进行身份validation。 我已经打开身份validationdebugging,我看到这在mail.log: dovecot: auth-worker(8603): Debug: sql(testuser,22.22.22.22): query: SELECT username as user, password_hash as password, password_salt as salt FROM users WHERE username='testuser'; dovecot: auth-worker(8603): sql(testuser,22.22.22.22): Password mismatch dovecot: auth-worker(8603): Debug: sql(testuser,22.22.22.22): SSHA512(testpassword) != '4acf9dc364843d1adfadfadf42de7d5707b791cc3ee8a2013f15efa8bdb' dovecot: auth: Debug: client passdb out: FAIL#0111#011user=testuser#011salt=QYhZ47zsQA= dovecot: […]
我正在运行一个Postfix邮件服务器,在扫描amavis将邮件转发到ciphermail (一个自动解密和encryption电子邮件的程序)之后,扫描我将它们转发给amavis的邮件。 密码邮件怨恨邮件amavis和amavis重新邮寄给Postfix。 Ciphermail运行在与postfix和amavis不同的服务器上。 我想归档所有邮件的解密和encryption,这意味着我想存档一次,然后通过ciphermail和通过ciphermail一次。 对于我插入到/etc/postfix/main.cf [email protected] 问题是,每个邮件存档三次不是两次。 在ciphermail之前两次,在ciphermail之后一次。 我的问题是为什么在ciphermail之前发送邮件两次,如何调整postfix在ciphermail之前和ciphermail之后发送一次邮件。 我已经试过在/etc/postfix/main.cf中插入 receive_override_options = no_address_mappings 但是现在邮件只是在ciphermail后存档一次如果我插入/etc/postfix/master.cf 127.0.0.1:10029 inet n – n – – smtpd # […] -o receive_override_options=no_header_body_checks,no_unknown_recipient_checks,no_address_mappings 邮件的副本只能在ciphermail en或解密邮件之前发送一次。 发送邮件的mail.log ,设置邮件的3个副本: Feb 3 13:30:25 email1mail postfix/submission/smtpd[3319]: connect from somewhere[xxx.xxx.xxx.xxx] Feb 3 13:30:25 email1mail postfix/submission/smtpd[3319]: 47F943003E: client=somewhere[xxx.xxx.xxx.xxx], sasl_method=PLAIN, [email protected] Feb 3 13:30:25 email1mail postfix/cleanup[3323]: 47F943003E: message-id=<[email protected]> […]
我已经设置了pam-pgsql来通过Saslauthd在Postfix的数据库中查找密码。 我可以使用命令行testing凭据: $ sudo testsaslauthd -u [email protected] -p password 0: NO "authentication failed" 身份validation将失败,我不知道为什么。 $ sudo tail /var/log/auth.log Feb 5 15:33:12 saslauthd[7460]: pam_unix(imap:auth): check pass; user unknown Feb 5 15:33:12 saslauthd[7460]: pam_unix(imap:auth): authentication failure; logname= uid=0 euid=0 tty= ruser= rhost= Feb 5 15:33:14 saslauthd[7460]: DEBUG: auth_pam: pam_authenticate failed: Authentication failure Feb 5 15:33:14 saslauthd[7460]: do_auth […]
Postfix + dovecot和sasl。 到目前为止工作1域。 添加了一个虚拟域。 传入邮件为这个作品。 但是,传出SASL身份validation失败。 为什么失败我不知道。 /etc/sasl2/smtpd.conf看起来像: pwcheck_method: auxprop auxprop_plugin: sasldb mech_list: PLAIN LOGIN postconf -n输出: alias_database = hash:/etc/aliases alias_maps = hash:/etc/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix debug_peer_level = 2 html_directory = no inet_interfaces = all inet_protocols = all mail_owner = postfix mailbox_size_limit […]
我最近在Centos6 / postfix / dovecot服务器上安装了Roundcube。 默认安装很好,但我想configuration一些我似乎无法解决的选项。 我的最终结果将是一个用户命中: http://domainname1.com/mail http://domainname2.com/mail 要么 http://mail.domainname1.com http://mail.domainname2.com 我已经设定 $rcmail_config['include_host_config'] = true; 在我的main.inc.php中创build了domainname1.inc.php和domainname2.inc.php 我改变了以下每个 $rcmail_config['default_host'] = array('domainname1.com'); $rcmail_config['default_host'] = array('domainname2.com'); 我不确定其他事情,否则我需要改变。 任何帮助,将不胜感激
为了避免在我设置用来访问我的邮件服务器(Debian Wheezy + Postfix + Dovecot IMAP)的每个电子邮件客户端上手动设置密件抄送或发送邮件位置,我configuration了我的Postfix服务器, ,通过使用像这样的sender_bcc_map: $ cat sender_bcc [email protected] [email protected] 所以我发送的每封电子邮件,发件人都是我的电子邮件地址,都会收到密送给我的密送邮件,然后login到我的收件箱。 这有一个问题,但是,如果我给自己发邮件提醒我做一些事情或看一个链接(如果我发现我的手机上的网站没有正确呈现并且想要logging的话,我经常这样做以后在我的桌面上查看)我得到两个副本。 是否可以设置Postfix,使其只能添加BCC(如果我还不在To :,抄送:或密件抄送:字段中? 有一个更线程友好的方式来实现这个服务器端邮政复制到收件箱scheme(也许不使用密件抄送),当我在我的邮件客户端启用线程模式(我使用各种GNU,雷鸟和K9的邮件取决于我的设备)该消息将出现在同一个线程作为答复从别人? 有没有什么方法可以告诉Postfix把邮件发送到我的收件箱,就像我的邮件客户端通过IMAP把邮件放到那里一样? 有关我的IMAPconfiguration:我的IMAP服务器是Dovecot,我的邮箱是mbox。 INBOX是/ var / mail / me,其他文件夹是〜me / mail目录中的mbox文件。
这是我的SMTP情况。 邮件stream由在线中继提供商(!! SPAM !!,!! BULK !!等)标记 邮件stream由内部后缀接收。 运输被configuration为中继到我们的内部交换,否则如果主题被标记。 我使用Header_checks来做到这一点。 标记的邮件stream被分派到我们的隔离服务器(webUI为个人用户等…) /^[sS]ubject:.*!!SPAM!!*/ FILTER smtp:192.168.11.250 /^[sS]ubject:.*!!BULK!!*/ FILTER smtp:192.168.11.250 /^[sS]ubject:.*!!SUSPECT!!*/ FILTER smtp:192.168.11.250 它工作正常。 我们的隔离服务器可以为用户生成可信发件人列表。 这个白名单是可用的,我可以下载到我的后缀。 我的问题是:如何在标题检查之前应用我的白名单? If Subject contains *!!SPAM!!* then If from contains [email protected] AND if to contains [email protected] Then redirect to internal exchange server else redirect to quarantine server endif endif 我不知道该怎么做。 任何提示?
这使我疯狂… Linux Debian +后缀… /etc/postfix/main.cf有以下几行: smtpd_recipient_restrictions = check_recipient_access hash:/etc/postfix/access, reject_invalid_hostname, reject_non_fqdn_recipient, reject_non_fqdn_sender, reject_unauth_destination, reject_unauth_pipelining, reject_unknown_recipient_domain, reject_rbl_client cbl.abuseat.org, reject_rbl_client sbl-xbl.spamhaus.org, check_policy_service unix:private/policyd-spf, check_policy_service inet:127.0.0.1:10023, permit_auth_destination, reject 现在,postfix拒绝来自单一IP的传入消息: [email protected] SMTP error from remote mail server after RCPT TO:<[email protected]>: host mail.server.ext [123.123.123.123]: 554 5.7.1 Service unavailable; Client host [234.234.234.234] blocked using cbl.abuseat.org; Blocked – see http://cbl.abuseat.org/lookup.cgi?ip=234.234.234.234 那么… http://cbl.abuseat.org/lookup.cgi?ip=234.234.234.234报告没有列入黑名单234.234.234.234(显然IP […]
三个问题: 如我错了请纠正我: smtpd_tls_mandatory_ciphers =>传入强制TLSencryption的设置 smtpd_tls_ciphers =>设置传入的机会性TLSencryption smtp_tls_mandatory_ciphers =>设置传出强制TLSencryption smtp_tls_ciphers =>设置传出机会TLSencryption 如果我同时设置了smtpd_tls_security_level和smtp_tls_security_level ,那么只有机会设置才是相关的,这意味着我在强制设置中设置的内容并不重要。 如果我想做一个安全的,但仍然公共邮件服务器将下面的configuration(关于使用的密码学)是好吗? 我不太确定目前有多less台服务器支持TLS或者一般的安全级别,但是我仍然希望能够与其中大部分服务器通信。 smtpd_tls_mandatory_ciphers = high smtp_tls_mandatory_ciphers = high smtpd_tls_ciphers = high smtp_tls_ciphers = high smtp_tls_security_level = may smtpd_tls_security_level = may smtp_tls_protocols = !SSLv2, !SSLv3 smtp_tls_mandatory_protocols = !SSLv2, !SSLv3 smtpd_tls_protocols = !SSLv2, !SSLv3 smtpd_tls_mandatory_protocols = !SSLv2, !SSLv3 smtp_tls_exclude_ciphers = aNULL, DES, RC4, MD5 smtpd_tls_exclude_ciphers […]