I having a hard time setting up outgoing mail on my HDA. I followed the instructions listed at: http://wiki.amahi.org/index.php/Enable_Outgoing_Emails to no avail.
I have tired setting up outgoing mail using my yahoo plus account as well as my Godaddy domain account.
I believe that both use port 465 and ssl.
Any ideas on how to get this working? I really need to be able to receive email updates from my HDA for relevant events (i.e., new registration for a webapp)
Thanks!
setting up outgoing mail
Re: setting up outgoing mail
Try this:
If that doesn't help, please paste your /var/log/maillog file (or the relevant part).
Code: Select all
cd /etc/mail
echo "define(\`RELAY_MAILER_ARGS', \`TCP \$h 465')dnl" >> sendmail.mc
echo "define(\`ESMTP_MAILER_ARGS', \`TCP \$h 465')dnl" >> sendmail.mc
m4 sendmail.mc > sendmail.cf
make
service sendmail restart
Last edited by gboudreau on Thu Jul 08, 2010 9:06 am, edited 1 time in total.
- Guillaume Boudreau
Re: setting up outgoing mail
Unfortunately, that didn't do the trick.
How do I retrieve info from the maillog to post?
How do I retrieve info from the maillog to post?
Re: setting up outgoing mail
Code: Select all
tail -100 /var/log/maillog | fpaste
- Guillaume Boudreau
Re: setting up outgoing mail
Here it is:
http://fpaste.org/n20A/
FYI.
the SMTP is: smtpout.secureserver.net
username is: myname@mydomain.com
password that corresponds with my username/email
uses SSL and port 465
Thanks!
http://fpaste.org/n20A/
FYI.
the SMTP is: smtpout.secureserver.net
username is: myname@mydomain.com
password that corresponds with my username/email
uses SSL and port 465
Thanks!
Re: setting up outgoing mail
You're server is trying to send the emails itself to the recipient's mail server, instead of sending them to your smart_host.
Try to replace:with:
(i.e. add square brackets around the SMTP hostname.)
Then:
If that didn't help,
Try to replace:
Code: Select all
define(`SMART_HOST', `smtpout.secureserver.net')dnl
Code: Select all
define(`SMART_HOST', `[smtpout.secureserver.net]')dnl
Then:
Code: Select all
cd /etc/mail
m4 sendmail.mc > sendmail.cf
make
service sendmail restart
Code: Select all
fpaste /etc/mail/sendmail.mc; fpaste /etc/mail/sendmail.cf
- Guillaume Boudreau
Re: setting up outgoing mail
That didn't work either. I have switched things back to my yahoo account:
smtp: plus.smtp.mail.yahoo.com
SSL and 495
sendmail.mc
http://fpaste.org/qkzf/
sendmail.cf
http://fpaste.org/HIld/
Also, my access file reads:
AuthInfo:plus.smtp.mail.yahoo.com "U:username" "P:password" "M:PLAIN"
anytime I adjusted access file (i.e. to try my Godaddy account or Yahoo) I would pass: makemap hash access < access
When ever I make any changes to either access or sendmail.mc I would: make and then: service sendmail restart
smtp: plus.smtp.mail.yahoo.com
SSL and 495
sendmail.mc
http://fpaste.org/qkzf/
sendmail.cf
http://fpaste.org/HIld/
Also, my access file reads:
AuthInfo:plus.smtp.mail.yahoo.com "U:username" "P:password" "M:PLAIN"
anytime I adjusted access file (i.e. to try my Godaddy account or Yahoo) I would pass: makemap hash access < access
When ever I make any changes to either access or sendmail.mc I would: make and then: service sendmail restart
Re: setting up outgoing mail
Not sure it matters, but your quotes are wrong.
should be:
i.e. backticks to start the quote, and single quote to end it.
Same for the RELAY_MAILER_ARGS and ESMTP_MAILER_ARGS lines.
Also, the $h didn't survive the echo... on those lines (I forgot to escape it; will edit my original post).
The should contain
now you have:
Code: Select all
define('SMART_HOST', '[plus.smtp.mail.yahoo.com]')dnl
Code: Select all
define(`SMART_HOST', `[plus.smtp.mail.yahoo.com]')dnl
Same for the RELAY_MAILER_ARGS and ESMTP_MAILER_ARGS lines.
Also, the $h didn't survive the echo... on those lines (I forgot to escape it; will edit my original post).
The should contain
Code: Select all
TCP $h 465
Code: Select all
TCP 465
- Guillaume Boudreau
Re: setting up outgoing mail
I tried to pass:
echo "define(\`RELAY_MAILER_ARGS', \`TCP \$h 465')dnl" >> sendmail.mc
and echo "define(\`ESMTP_MAILER_ARGS', \`TCP \$h 465')dnl" >> sendmail.mc
then: m4 sendmail.mc > sendmail.cf
then: make
then: service sendmail restart
still no dice
looked at sendmail.mc and...
the file ended up reading: define(\'RELAY_MAILER_ARGS', \'TCP $h 465')dnl
and define(\'ESMTP_MAILER_ARGS', \'TCP $h 465')dnl
assume that the files should read:
define('RELAY_MAILER_ARGS', 'TCP $h 465')dnl
and define('ESMTP_MAILER_ARGS', 'TCP $h 465')dnl
made those corrections
then: m4 sendmail.mc > sendmail.cf
then: make
then: service sendmail restart
still no dice
I don't have an option to make a back tick versus a single quote...
Here are my sendmail files again:
sendmail.mc
http://fpaste.org/UOpY/
sendmail.cf
http://fpaste.org/Ee0O/
echo "define(\`RELAY_MAILER_ARGS', \`TCP \$h 465')dnl" >> sendmail.mc
and echo "define(\`ESMTP_MAILER_ARGS', \`TCP \$h 465')dnl" >> sendmail.mc
then: m4 sendmail.mc > sendmail.cf
then: make
then: service sendmail restart
still no dice
looked at sendmail.mc and...
the file ended up reading: define(\'RELAY_MAILER_ARGS', \'TCP $h 465')dnl
and define(\'ESMTP_MAILER_ARGS', \'TCP $h 465')dnl
assume that the files should read:
define('RELAY_MAILER_ARGS', 'TCP $h 465')dnl
and define('ESMTP_MAILER_ARGS', 'TCP $h 465')dnl
made those corrections
then: m4 sendmail.mc > sendmail.cf
then: make
then: service sendmail restart
still no dice
I don't have an option to make a back tick versus a single quote...
Here are my sendmail files again:
sendmail.mc
http://fpaste.org/UOpY/
sendmail.cf
http://fpaste.org/Ee0O/
Re: setting up outgoing mail
You should really use backticks to start your strings.
Your smart_host seems to be ignored at this time, and your syntax is the only idea I have as to why that is.
Copy-paste a backtick from the sendmail.mc file that already contains many of them...
Your smart_host seems to be ignored at this time, and your syntax is the only idea I have as to why that is.
Copy-paste a backtick from the sendmail.mc file that already contains many of them...
- Guillaume Boudreau
Who is online
Users browsing this forum: No registered users and 40 guests