LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 822|回复: 8

怎样设置自己机器上的sendmail,让它连到指定的smtp server(比方说smtp.mail.yahoo.co

[复制链接]
发表于 2004-5-14 14:15:50 | 显示全部楼层 |阅读模式
是这样的,我自己装的sendmail,没怎么设置过,不过可以往一些信箱正常发邮件,
不过今天我发信件给sina,我得到553 Spam Mail的退信错误信息,我查了一下,原因是这
样:
________________________________________________________________________________

    1.为什么新浪服务器会产生553的退信信息?

    这是由于邮件发送方服务器的HELO域设置不规范造成的。如果新浪服务
    器无法对该域进行正确的DNS解析, 将会导致新浪反垃圾系统认为该服
    务器是垃圾邮件发送者从而拒收. 不规范的HELO域的示例如下:

      * HELO office
      * HELO mailserver
      * HELO localhost.localdomain
________________________________________________________________________________

是不是我的sendmail需要一些设置,我想让我的sendmail使用我的yahoo信箱的smtp来发信,
不知可不可以解决这个问题?如果可以该怎样设置?谢谢大家的帮助!

Many thanks in advance!
 楼主| 发表于 2004-5-14 15:48:58 | 显示全部楼层

大家帮帮我啊,说说大家都是怎么在linux下发邮件的?

怎么设置你们的sendmail的?
发表于 2004-5-16 03:46:06 | 显示全部楼层
如果发邮件的话,应该不需要对sendmail做什么配置的,被拘收的原因是你的邮件地址被SINA拒绝,这是因为SINA的邮件服务器需要SMTP认证。如果你是从你自己建的邮件服务器上发邮件的话,大概是不行的。除非你利用别的,比如yahoo的邮箱的SMTPF服务来转发你邮件。最终的设置应该是你的MUA,而不是在MTA/MDA上设置。
 楼主| 发表于 2004-5-16 11:36:27 | 显示全部楼层

赫赫,我还以为没人理我这帖了呢,谢谢回复!

Thx again for your help!

我也觉得你分析的原因是正确的.这个问题一出现时,我就想到用我的yahoo信箱来替我发
信.就象M$ Outlook Express一样,设置好自己信箱的帐号和密码,再设置好POP, SMTP
server,就可以在本地收发邮件了.但我现在用Mutt,他是个__纯粹__的MUA,只负责信件管
理,不能收信(收信我用Fetchmail),也不能发信(发信我用Sendmail).所以我就想是不
是设置SMTP应该由Sendmail来,我对Sendmail不了解,所以就来问大家.:-) 不知道象我这
种情况该怎样解决?望大家帮助!
发表于 2004-5-16 14:23:48 | 显示全部楼层
if you know how to use .mc file to create .cf file, add one line  in your .mc file, and generate the new sencmail.cf from it

define(`MAIL_HUB', `relay:mx1.hotmail.com')
 楼主| 发表于 2004-5-16 19:33:28 | 显示全部楼层

谢谢回复!不过我对sendmail还不了解,只知道他的设置很复杂.能不能告诉我怎么做,我把问题

望帮助!
Help appreciated!
发表于 2004-5-17 07:59:03 | 显示全部楼层
In slackware:
  # cd /usr/share/sendmail/cf/cf
  # cp generic-linux.mc mysite.mc
  # vi mysite.mc  # and add the one line as mentioned above after line OSTYPE
  # m4 mysite.mc > /etc/mail/sendmail.cf
  # /etc/rc.d/rc.sendmail restart

Read the Sendmail README first, this is always the best tutorial to configure Sendmail.
 楼主| 发表于 2004-5-17 12:00:33 | 显示全部楼层

Hi dude, thx for help! I've tried, but the problem persisted. It didn't get

The system I've been using isn't slackware but lfs5.0. I had the file sendmail.mc
modified exactly according to what you've instructed me, and then ran m4 to
macro-compile it, however the resulting configuration file sendmail.cf was only
of 2-line length; apparently something had went wrong here, and it did in fact
as sendmail wasn't able to boot. I did a bit of googling about this, and found
that's because of the failure to pre-load cf.m4, so I changed the command to the
form of "m4 m4/cf.m4 sendmail.mc > sendmail.cf", and this time things seemed to
be all right, sendmail got started properly as well. I sent an email to sina for
a try - unfortunately nothing responded, then another to yahoo account which
worked correctly with the original configuration of sendmail - got nothing
either; what's even worse was that I couldn't receive emails using fetchmail
which, in theory, should have had nothing to do with sendmail because it's only
responsible for email-retrieving as far as I know. Just can't figure it out,
weird! -_-# As a result I had no choice but to restore the backup of
sendmail.cf, and return back to the former state. Perhaps the only way to solve
this problem is to refer to the manual on one's own, though it's soooooooooo
long - more than 4,000 lines. I think I'd better put it aside for a while,
leaving this "puzzle" to others. ^_^ Anyhow __thank you__ very much once again
for your help, any suggestion likely to find a solution to this problem is
appreciated!

Regards!
 楼主| 发表于 2004-5-17 21:26:01 | 显示全部楼层

新浪干嘛这个样子啊?赫赫,下面这个帖的楼主也跟我一样的问题.

Title             sendmail 问题
http://www.linuxsir.cn/forum.php ... ;highlight=sendmail

:-)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表