1 |
Hi all, |
2 |
|
3 |
When I tried to send some message to my gmail account in a script |
4 |
using "mail -s ...", it is rejected by gmail service saying: |
5 |
|
6 |
<hongqn@×××××.com>: host gmail-smtp-in.l.google.com[209.85.143.27] said: |
7 |
550-5.7.1 [123.113.73.134] The IP you're using to send mail is not |
8 |
authorized 550-5.7.1 to send email directly to our servers. Please use the |
9 |
SMTP 550-5.7.1 relay at your service provider instead. Learn more at |
10 |
550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336 |
11 |
j5si29197195tid.12 (in reply to end of DATA command) |
12 |
|
13 |
I had this done before using ssmtp in my former gentoo Linux box |
14 |
(reference: http://gentoo-wiki.com/HOWTO_Gmail_and_sSMTP). So after |
15 |
setting etc/portage/package.keywords, I emerged ssmtp and mailx. But |
16 |
the following command: |
17 |
|
18 |
echo "some text" | $HOME/Gentoo/usr/bin/Mail -s hongqn@×××××.com |
19 |
|
20 |
still gives me the same rejection mail from gmail. Anybody gives me a hint? |
21 |
|
22 |
-- |
23 |
Qiangning Hong |
24 |
http://www.douban.com/people/hongqn/ |