View previous topic :: View next topic |
Author |
Message |
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Sun Aug 03, 2014 1:53 pm Post subject: Why does sendmail need a relay? |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Sun Aug 03, 2014 1:59 pm Post subject: |
|
|
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Sun Aug 03, 2014 2:11 pm Post subject: |
|
|
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 |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Mon Aug 04, 2014 1:46 am Post subject: |
|
|
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Mon Aug 04, 2014 7:32 am Post subject: |
|
|
I've mail-mta/sendmail package installed _________________ My blog |
|
Back to top |
|
|
dataking Apprentice
Joined: 20 Apr 2005 Posts: 251
|
Posted: Mon Aug 04, 2014 7:45 pm Post subject: |
|
|
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 |
|
|
dE_logics Advocate
Joined: 02 Jan 2009 Posts: 2253 Location: $TERM
|
Posted: Tue Aug 05, 2014 3:47 am Post subject: |
|
|
I didnt know about the daemon.
Thanks for that... _________________ My blog |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9679 Location: almost Mile High in the USA
|
Posted: Tue Aug 05, 2014 6:22 pm Post subject: |
|
|
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/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
|