Articles of sendmail

在CentOS 6上的sendmail&sasl auth

我将一个邮件服务器从一个CentOS 6移到另一个。 我用sasl pamauthentication使用sendmail。 当我尝试发送邮件时失败,因为用户没有通过身份validation,邮件客户端不需要密码。 新老服务器上的所有configuration文件都是相同的。 我用telnet(新服务器)testing了这个: # telnet localhost 25 Trying 127.0.0.1… Connected to localhost. Escape character is '^]'. 220 new.mldb.org ESMTP Sendmail 8.14.4/8.14.4; Wed, 4 Feb 2015 14:05:18 +0100 ehlo localhost 250-new.mldb.org Hello localhost.localdomain [127.0.0.1], pleased to meet you 250-ENHANCEDSTATUSCODES 250-PIPELINING 250-8BITMIME 250-SIZE 250-DSN 250-ETRN 250-STARTTLS 250-DELIVERBY 250 HELP 旧服务器: Trying 127.0.0.1… Connected […]

configurationSendMail SMART_HOST选项以执行MX查找的正确方法是什么?

我认为这个问题与这篇文章有关,但是我觉得这个问题不同于一个单独的文章。 我目前有我的Sendmail服务器configuration为发送到下游的VIP。 在我的sendmail.mc文件中,我有: define(`SMART_HOST',`relay:[vip.example.local]')dnl 我的理解是,因为值被括在括号中,sendmail将执行一个DNS查询并发送到返回的Alogging。 我想让sendmail查询MXlogging。 什么是适当的语法? 根据之前的post,我怀疑它应该是: define(`SMART_HOST',`vip.example.local')dnl 但我不确定是否需要RELAY:参考。

连接被拒绝

我对电子邮件服务器不太好。 这是我需要的: 我有一个邮箱在fastmail.com与我的自定义域名(让我们称之为example.com)。 现在我想build立我的networking服务器,通过fastmail.com(我有他们的mxlogging在手)中继电子邮件和无回复电子邮件地址是[email protected]。 我想使用sendmail来实现这一点。 当我尝试使用sendmail发送电子邮件时,以下是我得到的日志: to=_myemailaddress_, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30088, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] ( myemailaddress是我自己的电子邮件地址)。 这里的中继服务器是127.0.0.1,这看起来不正确。 于是,我挖掘并find了两个文件/var/mail/submit.cf和/var/mail/sendmail.cf。 然后我search文本“127.0.0.1”的行: // submit.cf FEATURE(`msp', `[127.0.0.1]', `25')dnl // sendmail.cf dnl DAEMON_OPTIONS(`Family=inet6, Name=MTA-v6, Port=smtp, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl DAEMON_OPTIONS(`Family=inet, Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl 我应该将地址更改为fastmail MXlogging(in1-smtp.messagingengine.com,in2-smtp.messagingengine.com)? […]

强制PHP邮件避免使用后缀root @ myorigin; 使用/ etc / mailname呢?

我最近发布了一个设置邮件服务器postfix和虚拟别名的问题。 我在这里解决了这个问题: Postfix / Dovecot – 多个域和多个Linux帐户 总结一下,我把myorigin设置为localhost,还有一些设置。 通过SMTP发送和接收邮件效果很好! 但是,当从/usr/sbin/sendmail发送邮件,即PHP的mail()命令时,它以某种方式忽略From:标题,而是抓取myorigin值。 以下是重要的标题: From: Me <[email protected]> Return-path: <root@localhost> Received: from example.org (example.org [104.xxx.xxx.xxx]) by mx.google.com with ESMTPS… Received-SPF: neutral (google.com: 104.xxx.xxx.xxx is neither permitted nor denied by best guess record for domain of root@localhost) client-ip=104.xxx.xxx.xxx; 当我将myorigin更改为example.org所有的东西都可以很好地发送到PHP,但是完全消除了我以任何方式接收和发送邮件的能力。 所以这不是一个真正的解决scheme。 所以我想要做的是告诉/usr/sbin/sendmail不使用myorigin ,而是使用/etc/mailname JUST FOR PHP 。 我想在其他地方保留postfix的电子邮件。 这可能吗? 谢谢。

sendmail:如果不是这样的话,抱怨“Group可写目录”?

由于Group writable directory错误,我无法启动我的sendmail服务: $ service sendmail start Starting sendmail: 451 4.0.0 /etc/mail/sendmail.cf: line 87: fileclass: cannot open '/etc/mail/local-host-names': Group writable directory 451 4.0.0 /etc/mail/sendmail.cf: line 596: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory [FAILED] Starting sm-client: /etc/mail/submit.cf: line 552: fileclass: cannot open '/etc/mail/trusted-users': Group writable directory [FAILED] 但是,权限似乎是正确的: /等等: $ ls -ld /etc drwxr-xr-x. 93 […]

为什么sendmail更改FROM域以及如何configuration正确的?

我安装了Jenkins,并将其configuration为从“[email protected]”发送电子邮件,但是在发送电子邮件时,地址总是被更改,而我收到的邮件是从“[email protected] .COM”。 我已经安装了Sendmail,Jenkins被configuration为使用127.0.0.1作为邮件服务器。 任何想法为什么Sendmail在发送电子邮件时会replaceFROM域? 服务器的主机名正确设置(当我运行hostname我得到“jenkins.example.com”)。 同样的方式,如果我从命令行发送电子邮件echo "This is the body" | mail -s "Subject" [email protected] echo "This is the body" | mail -s "Subject" [email protected] 从哪里采取这个default.vps.example.com域? 这个默认域在哪里可configuration? LE:在我的sendmail.mc中,我define( confDOMAIN_NAME', jenkins.domain.com')dnl并生成了sendmail.cf文件m4 sendmail.mc > sendmail.cf并重新启动了sendmail。 依然不起作用。 LE2: ADDRESS TEST MODE (ruleset 3 NOT automatically invoked) Enter <ruleset> <address> > canonify input: jenkins @ jenkins . example . […]

Procmail和雷鸟

我有一个邮件服务器configuration(spamassassin + procmail + sendmail + dovecot)我希望所有的垃圾邮件redirect到垃圾邮件文件夹我设置/ etc / procmail DEFAULT=/var/spool/mail/$LOGNAME/new ORGMAIL=/var/spool/mail/$LOGNAME MAILDIR=/var/spool/mail/$LOGNAME # deliver spam to spam folder :0: * ^X-Spam-Status: Yes .Spam/ 和鸽舍的邮箱 inbox = yes #mailbox name { # auto=create will automatically create this mailbox. # auto=subscribe will both create and subscribe to the mailbox. #auto = no # Space separated list […]

当sendmail守护进程收到一个kill -15(SIGTERM)请求时,它做了什么? 这如何影响传输中的消息?

有人可以详细说明如果sendmail守护进程在收到kill -15请求时正在处理消息的过程中会发生什么? 它会完成处理任何正在处理的消息吗? 或立即终止? 我试图确定sendmail是否会正常地结束连接,当我运行service sendmail restart 。

在Red Hat上configuration邮件中继

我有一个红帽子Linux服务器,不能发送传出的电子邮件。 我也有一个solaris服务器,之前已经configuration邮件中继邮件服务器。 为了使用户能够从红帽子接收邮件,我需要通过solaris服务器中继邮件。 而且我的老板严格地要求我用sendmail代替postfix。 到目前为止,这是我做的: solaris服务器:bres.net.com – 192.65.7.8 红帽子:主机名:蝙蝠侠IP:192.55.7.43 编辑/etc/mail/sendmail.mc define(`SMART_HOST',`bres.net.com')dnl MASQUERADE_AS(`net.com')dnl FEATURE(masquerade_envelope)dnl FEATURE(masquerade_entire_domain)dnl MASQUERADE_DOMAIN(localhost)dnl MASQUERADE_DOMAIN(localhost.net.com)dnl MASQUERADE_DOMAIN(batman.net.com)dnl MASQUERADE_DOMAIN(others.net.com)dnl 编辑/ etc / hosts 127.0.0.1 batman.net.com localhost.localdomain localhost batman 192.55.7.43 batman batman.net.com loghost 192.65.7.8 bres bres.net.com 编辑/etc/resolv.conf search net.com bres.net.com 192.65.7.8 创build新的sendmail.cf: m4 sendmail.mc > sendmail.cf 重新启动sendmail 尝试发送邮件进行testing 检查日志/ var / log / maillog Nov 22 12:00:54 […]

sendmail“未知用户”,邮件转发任务

我有一个转发mxlogging的Ubuntu 16.04 Web服务器。 在服务器上,我安装了sendmail。 我有多个虚拟主机runnning。 其中之一是“xxx-tele.com”。 现在我想设置sendmail,发送到[email protected]的所有邮件应该被转发到[email protected],这是我的networking内部不同邮件服务器上的邮箱。 首先我添加了一个/ etc / mail / virtusertable [email protected] [email protected] 并用“makemap hash virtusertable.db <virtusertable”创build了散列文件。 在/etc/mail/sendmail.mc我添加了该行 FEATURE(`virtusertable', `hash -o /etc/mail/virtusertable.db')dnl 我跑了 m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf 命令并用“service sendmail reload”重新启动sendmail。 现在,我尝试命令 sendmail -bv [email protected] 我只是得到回应:[email protected] …用户未知 xxx-tele.com被添加到/ etc / hosts和/ etc / mail / local-host-names中 我怎样才能设置sendmail只是转发这个地址,并拒绝所有其他的? 命令:echo'$ = w'| sendmail -bt只是返回: ADDRESS TEST […]