Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why does sendmail need a relay?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sun Aug 03, 2014 1:53 pm    Post subject: Why does sendmail need a relay? Reply with quote

Sendmail is "an electronic mail transport agent" as per the man page, so it should directly be able to communicate to other mail exchange servers to deliver mail.

But when I try to send mails to my Google account...

Code:
Connecting to [127.0.0.1] via relay...
Deferred: Connection refused by [127.0.0.1]

_________________
My blog
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7050
Location: almost Mile High in the USA

PostPosted: Sun Aug 03, 2014 1:59 pm    Post subject: Reply with quote

how are you trying to send mail to your google account? What mail client are you using?
Sendmail is a mail transport, though if you're just sending mail to another site, you don't need another transport agent...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Sun Aug 03, 2014 2:11 pm    Post subject: Reply with quote

eccerr0r wrote:
how are you trying to send mail to your google account? What mail client are you using?
Sendmail is a mail transport, though if you're just sending mail to another site, you don't need another transport agent...


sendmail -v my_ID@gmail.com
<message>
...
...
ctrl-D

Mail client? I thought sendmail works as a small mail client and also as a transfer agent. That's why I can compose mails using it in the 1st place.
_________________
My blog
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7050
Location: almost Mile High in the USA

PostPosted: Mon Aug 04, 2014 1:46 am    Post subject: Reply with quote

Technically "telnet" can also be used to send mail...

By the way, are you sure you're using sendmail and not ssmtp? ssmtp may need a bit of configuration however. I've never really used ssmtp so I don't know how it's used...
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Mon Aug 04, 2014 7:32 am    Post subject: Reply with quote

I've mail-mta/sendmail package installed
_________________
My blog
Back to top
View user's profile Send private message
dataking
Apprentice
Apprentice


Joined: 20 Apr 2005
Posts: 251

PostPosted: Mon Aug 04, 2014 7:45 pm    Post subject: Reply with quote

dE_logics wrote:
I've mail-mta/sendmail package installed


Is it running?

Did you
Code:
sudo /etc/init.d/sendmail start
and/or
Code:
rc-update add sendmail default
?

The latter wouldn't have started the service unless you rebooted after.
_________________
-= the D@7@k|n& =-
Back to top
View user's profile Send private message
dE_logics
Advocate
Advocate


Joined: 02 Jan 2009
Posts: 2253
Location: $TERM

PostPosted: Tue Aug 05, 2014 3:47 am    Post subject: Reply with quote

I didnt know about the daemon.

Thanks for that...
_________________
My blog
Back to top
View user's profile Send private message
eccerr0r
Watchman
Watchman


Joined: 01 Jul 2004
Posts: 7050
Location: almost Mile High in the USA

PostPosted: Tue Aug 05, 2014 6:22 pm    Post subject: Reply with quote

Ah yeah that would explain why the relay isn't working...

But might want to look at ssmtp if you don't want to relay. ssmtp will use another machine's relay.
_________________
Intel Core i7 2700K@ 4.1GHz/HD3000 graphics/8GB DDR3/180GB SSD
What am I supposed watching?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum