由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - 求助:一个sendmail的问题
相关主题
ft. postfix! postfix!help on a simple smtp server setup
新手问:mysql和shell如何从我的ubuntu linux 发邮件到我的gmail 账号
求助,linux下的smtpbrute force ssh attack by script kiddie
还是不会设置mail serverUBUNTU 配置email服务器(用SMTP)
linux的smtp,那个postfixmail server setup
电子邮件被黑的问题,先谢了!真心请教关于mail server的问题
向 zher 同学道个歉emacs gnus smtp 咋整?
how to send an email in command line?DNS problem
相关话题的讨论汇总
话题: sendmail话题: server话题: linux话题: mail话题: relay
进入Linux版参与讨论
1 (共1页)
d**s
发帖数: 920
1
求助:一个sendmail的问题
我有一个Linux Box在家里behind firewall. 我想在这个机器上run sendmail.
我的域名是:for example, mydomainname.com, 我现在的问题是, sendmail
好像已经在这个linux machine 上设置好了。我可以在linux machine自己给自己发
email. 网络也没有问题, 我可以访问Internet.
可是, 我给别的地方发email, 别的email server好像不接受我的email.
For example, if I send to m************[email protected],
the following is in /var/log/maillog,
It says:
"... relay=[127.0.0.1], dsn=2.0.0, stat=sent (... Message accepted for
delivery)."
".... relay=alt4.gmail-smtp-in.l.google.com, [209.85.129.27],
v*****r
发帖数: 1119
2
我觉得你的local linux box 的sendmail mail relay 还没有设好, 先从你的 ISP 那
里要 outging SMTP server name, 或者用public free 的 SMTP server (好像你可以
免费用Google的).
Depending on what Linux you are using, 古狗一下 如何 configure sendmail
relay (or smarthost relay) on linux. 剩下的就是改改 sendmail.cf 配置文件,re
-start sendmail daemon.
t***s
发帖数: 4666
3
forget about sendmail, use postfix instead.

【在 d**s 的大作中提到】
: 求助:一个sendmail的问题
: 我有一个Linux Box在家里behind firewall. 我想在这个机器上run sendmail.
: 我的域名是:for example, mydomainname.com, 我现在的问题是, sendmail
: 好像已经在这个linux machine 上设置好了。我可以在linux machine自己给自己发
: email. 网络也没有问题, 我可以访问Internet.
: 可是, 我给别的地方发email, 别的email server好像不接受我的email.
: For example, if I send to m************[email protected],
: the following is in /var/log/maillog,
: It says:
: "... relay=[127.0.0.1], dsn=2.0.0, stat=sent (... Message accepted for

v*****r
发帖数: 1119
4
The configuration on relay part should be very similar whether postfix or
sendmail, though I never try on postfix.
d**s
发帖数: 920
5
why do I need a relay ?
should my linux box be its own mail server ?

re

【在 v*****r 的大作中提到】
: 我觉得你的local linux box 的sendmail mail relay 还没有设好, 先从你的 ISP 那
: 里要 outging SMTP server name, 或者用public free 的 SMTP server (好像你可以
: 免费用Google的).
: Depending on what Linux you are using, 古狗一下 如何 configure sendmail
: relay (or smarthost relay) on linux. 剩下的就是改改 sendmail.cf 配置文件,re
: -start sendmail daemon.

v*****r
发帖数: 1119
6
My understanding is that to run your "mail server", that means you will need
to configure a MX record in you DNS server for your mail server (and mail
server might have to have a fully registered domain name on internet).
Relay configuration for sendmail is to let it to be able to send/receive
emails via a "mail server" who can communicate with outside world.
I am not a system administrator, correct me if my understanding is not right.
d**s
发帖数: 920
7
In my case, I want to configure my Linux Box to be the "mail server", and it
will communicate with outside world.
Do you have other suggestions ?

need
right.

【在 v*****r 的大作中提到】
: My understanding is that to run your "mail server", that means you will need
: to configure a MX record in you DNS server for your mail server (and mail
: server might have to have a fully registered domain name on internet).
: Relay configuration for sendmail is to let it to be able to send/receive
: emails via a "mail server" who can communicate with outside world.
: I am not a system administrator, correct me if my understanding is not right.

v*****r
发帖数: 1119
8
Take a look at this post, which describe configuring "mail server" using
sendmail on linux (not just relay configuration).
http://www.linuxselfhelp.com/quick/sendmail.html
BTW, I consider the sendmail running on your linux box is a "mail server",
but only serving your local host. The term "mail server" is really a
confusing term :->
t***s
发帖数: 4666
9
it's time out, not denial. probably your isp is blocking port 24. contact
them to remove the block.

【在 d**s 的大作中提到】
: 求助:一个sendmail的问题
: 我有一个Linux Box在家里behind firewall. 我想在这个机器上run sendmail.
: 我的域名是:for example, mydomainname.com, 我现在的问题是, sendmail
: 好像已经在这个linux machine 上设置好了。我可以在linux machine自己给自己发
: email. 网络也没有问题, 我可以访问Internet.
: 可是, 我给别的地方发email, 别的email server好像不接受我的email.
: For example, if I send to m************[email protected],
: the following is in /var/log/maillog,
: It says:
: "... relay=[127.0.0.1], dsn=2.0.0, stat=sent (... Message accepted for

d**s
发帖数: 920
10
port 24 ?
I thought email use port 25.

【在 t***s 的大作中提到】
: it's time out, not denial. probably your isp is blocking port 24. contact
: them to remove the block.

相关主题
电子邮件被黑的问题,先谢了!help on a simple smtp server setup
向 zher 同学道个歉如何从我的ubuntu linux 发邮件到我的gmail 账号
how to send an email in command line?brute force ssh attack by script kiddie
进入Linux版参与讨论
t***s
发帖数: 4666
11
then 25. i can remember it wrong. but many isps block this port.

【在 d**s 的大作中提到】
: port 24 ?
: I thought email use port 25.

v*****r
发帖数: 1119
12
I got a couple of questions:
1. What is the real need to setup mail server (instead of just simply
configuring smarthost relaying if just for sending/receiving emails)?
2. I assume setting up mail server using sendmail for homenework probably
involves dealing your ISP on the DNS configuration for the mail server, are
they willing to assist you on that?
Could anyone with experience setting up mail server (on linux) for their
homenework share their thought on this?
thx
m******t
发帖数: 2416
13

That's most likely the case. Many ISPs
block port 25 (that's probably what you
meant) because there are too many home
pcs taken over by bots and used to send
spams.
And it's unlikely that they'll unblock
it. What LZ needs to do is configure
the local box to relay mail to the ISP's
smtp server.

【在 t***s 的大作中提到】
: it's time out, not denial. probably your isp is blocking port 24. contact
: them to remove the block.

t***s
发帖数: 4666
14
sbc/att dsl used to honor user request for unblocking port 25.
just an online request was suffice. don't know about their
policy now.

【在 m******t 的大作中提到】
:
: That's most likely the case. Many ISPs
: block port 25 (that's probably what you
: meant) because there are too many home
: pcs taken over by bots and used to send
: spams.
: And it's unlikely that they'll unblock
: it. What LZ needs to do is configure
: the local box to relay mail to the ISP's
: smtp server.

m******t
发帖数: 2416
15

There isn't much point really.
are
You don't need to get your ISP involved.
(chances are they aren't going to help
you anyway)
What you need to do is find a dns service
provider that:
1. supports dynamic dns update because
you'll need to update your home IP every
time it changes, and
2. lets you add an MX record to your domain.

【在 v*****r 的大作中提到】
: I got a couple of questions:
: 1. What is the real need to setup mail server (instead of just simply
: configuring smarthost relaying if just for sending/receiving emails)?
: 2. I assume setting up mail server using sendmail for homenework probably
: involves dealing your ISP on the DNS configuration for the mail server, are
: they willing to assist you on that?
: Could anyone with experience setting up mail server (on linux) for their
: homenework share their thought on this?
: thx

m******t
发帖数: 2416
16
Doesn't hurt to give it a try I guess. 8-)

【在 t***s 的大作中提到】
: sbc/att dsl used to honor user request for unblocking port 25.
: just an online request was suffice. don't know about their
: policy now.

v*****r
发帖数: 1119
17
Thanks, magicfat

【在 m******t 的大作中提到】
: Doesn't hurt to give it a try I guess. 8-)
d**s
发帖数: 920
18
> 2. lets you add an MX record to your domain.
Do you mean to add something like: mail.myowndomain.com to MX record ?
After that, do I need to do something to sendmail configuration to use above
information ? (or to change to my firewall setting or Linux network setting
? )
Thanks,

【在 m******t 的大作中提到】
: Doesn't hurt to give it a try I guess. 8-)
v*****r
发帖数: 1119
19
To summarize:
Based on some good inputs on this post, now looking back at this article:
http://www.linuxselfhelp.com/quick/sendmail.html
The steps to configure mail server using sendmail seems very clear with the
following caveats:
1. As pre-requirement, you will need to have a "fully registered domain name
". My understanding to this is you will also have to register your domain
name with ARPA at IANA (ask your domain name registrar to help you on this).
That is due to most email system will do
t***s
发帖数: 4666
20
i used to use a dyndns name to send and receive mails without a problem.

the
name
).
to

【在 v*****r 的大作中提到】
: To summarize:
: Based on some good inputs on this post, now looking back at this article:
: http://www.linuxselfhelp.com/quick/sendmail.html
: The steps to configure mail server using sendmail seems very clear with the
: following caveats:
: 1. As pre-requirement, you will need to have a "fully registered domain name
: ". My understanding to this is you will also have to register your domain
: name with ARPA at IANA (ask your domain name registrar to help you on this).
: That is due to most email system will do

相关主题
UBUNTU 配置email服务器(用SMTP)emacs gnus smtp 咋整?
mail server setupDNS problem
真心请教关于mail server的问题Ubuntu下的VPN
进入Linux版参与讨论
m*t
发帖数: 7490
21
我在ubuntu下用postfix遇到和楼主同样的问题
我有注册的domain,有固定ip
postfix按照ubuntu wiki上的设置配置起来的
现在的状况是在别的机器上用客户端软件(如thundermail等)发信一切正常,server
的应答没任何问题,但是就是信发布出去,收信人收不到
对domain端的配置不了解,仅仅将mail server的ip指向自己的server,不知道够不够
。看来还要再学习啊
t***s
发帖数: 4666
22
post maillog

server

【在 m*t 的大作中提到】
: 我在ubuntu下用postfix遇到和楼主同样的问题
: 我有注册的domain,有固定ip
: postfix按照ubuntu wiki上的设置配置起来的
: 现在的状况是在别的机器上用客户端软件(如thundermail等)发信一切正常,server
: 的应答没任何问题,但是就是信发布出去,收信人收不到
: 对domain端的配置不了解,仅仅将mail server的ip指向自己的server,不知道够不够
: 。看来还要再学习啊

m******t
发帖数: 2416
23
The provider hosting your mail server might be blocking outgoing port 25
connections.
I know quite a number of hosting service providers who do that, for the same
reason
isps block port 25 on home users.

server

【在 m*t 的大作中提到】
: 我在ubuntu下用postfix遇到和楼主同样的问题
: 我有注册的domain,有固定ip
: postfix按照ubuntu wiki上的设置配置起来的
: 现在的状况是在别的机器上用客户端软件(如thundermail等)发信一切正常,server
: 的应答没任何问题,但是就是信发布出去,收信人收不到
: 对domain端的配置不了解,仅仅将mail server的ip指向自己的server,不知道够不够
: 。看来还要再学习啊

L*1
发帖数: 11537
24
I started sending emails directly from my own Linux box using sendmail about
15 years ago, but stopped 7-8 ago. The main problem is with reverse lookup
(spam prevention measure) -- if outside cannot see you, they will not accept
your email.
Port 25 is a separate issue.
t***s
发帖数: 4666
25
i was doing it until a couple years ago. gmail has not problem receiving
them. now my current isp won't unblock port 25 so i have to use a relay.
still gmail has no problem receiving them. i mainly use it for auto
notification from my boxes.

about
lookup
accept

【在 L*1 的大作中提到】
: I started sending emails directly from my own Linux box using sendmail about
: 15 years ago, but stopped 7-8 ago. The main problem is with reverse lookup
: (spam prevention measure) -- if outside cannot see you, they will not accept
: your email.
: Port 25 is a separate issue.

d**s
发帖数: 920
26
How do let "outside see me" ?
Thanks.

about
lookup
accept

【在 L*1 的大作中提到】
: I started sending emails directly from my own Linux box using sendmail about
: 15 years ago, but stopped 7-8 ago. The main problem is with reverse lookup
: (spam prevention measure) -- if outside cannot see you, they will not accept
: your email.
: Port 25 is a separate issue.

L*1
发帖数: 11537
27
Normally when you setup your box, you pickup a domain name and an IP address
just for local use only (e.g. 192.168.0.5). Outside cannot see you.
To make yourself seen, you must register your domain name, and have an
assigned IP address for your mail server. In this way, when you send out an
email, the recipient machine will come back (through your domain/machine
name and IP address) and ask your mail server: "Are you really there?". You
say "Yes", then the recipient accepts your email, otherwise
d****e
发帖数: 251
28
postfix 更容易,不过自家的email server很多地方不收的,譬如yahoo有一个spam
list
1 (共1页)
进入Linux版参与讨论
相关主题
DNS problemlinux的smtp,那个postfix
Ubuntu下的VPN电子邮件被黑的问题,先谢了!
Google Public DNS向 zher 同学道个歉
用Apt最近蛋疼了两次how to send an email in command line?
ft. postfix! postfix!help on a simple smtp server setup
新手问:mysql和shell如何从我的ubuntu linux 发邮件到我的gmail 账号
求助,linux下的smtpbrute force ssh attack by script kiddie
还是不会设置mail serverUBUNTU 配置email服务器(用SMTP)
相关话题的讨论汇总
话题: sendmail话题: server话题: linux话题: mail话题: relay