1 |
On 04-09-2008 14:04:53 +0800, Qiangning Hong wrote: |
2 |
> Hi all, |
3 |
> |
4 |
> When I tried to send some message to my gmail account in a script |
5 |
> using "mail -s ...", it is rejected by gmail service saying: |
6 |
> |
7 |
> <hongqn@×××××.com>: host gmail-smtp-in.l.google.com[209.85.143.27] said: |
8 |
> 550-5.7.1 [123.113.73.134] The IP you're using to send mail is not |
9 |
> authorized 550-5.7.1 to send email directly to our servers. Please use the |
10 |
> SMTP 550-5.7.1 relay at your service provider instead. Learn more at |
11 |
> 550 5.7.1 http://mail.google.com/support/bin/answer.py?answer=10336 |
12 |
> j5si29197195tid.12 (in reply to end of DATA command) |
13 |
> |
14 |
> I had this done before using ssmtp in my former gentoo Linux box |
15 |
> (reference: http://gentoo-wiki.com/HOWTO_Gmail_and_sSMTP). So after |
16 |
> setting etc/portage/package.keywords, I emerged ssmtp and mailx. But |
17 |
> the following command: |
18 |
> |
19 |
> echo "some text" | $HOME/Gentoo/usr/bin/Mail -s hongqn@×××××.com |
20 |
> |
21 |
> still gives me the same rejection mail from gmail. Anybody gives me a hint? |
22 |
|
23 |
two things: the latest ssmtp is plagued by some Debian logic, so use |
24 |
ssmtp-2.61-r2 (gentoo-x86 is a bit stubborn on this one -- it had to go |
25 |
stable, but it's totally broken). Adittionally, the error message you |
26 |
get simply sounds as if they don't like you to use their mailserver for |
27 |
relaying (which makes sense), did you forget to use smtps with |
28 |
authorisation perhaps? |
29 |
|
30 |
|
31 |
-- |
32 |
Fabian Groffen |
33 |
Gentoo on a different level |