setting up outgoing mail

trebor
Posts: 51
Joined: Wed Jul 07, 2010 4:32 am

setting up outgoing mail

Postby trebor » Thu Jul 08, 2010 5:59 am

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!

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: setting up outgoing mail

Postby gboudreau » Thu Jul 08, 2010 6:14 am

Try this:

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
If that doesn't help, please paste your /var/log/maillog file (or the relevant part).
Last edited by gboudreau on Thu Jul 08, 2010 9:06 am, edited 1 time in total.
- Guillaume Boudreau

trebor
Posts: 51
Joined: Wed Jul 07, 2010 4:32 am

Re: setting up outgoing mail

Postby trebor » Thu Jul 08, 2010 6:41 am

Unfortunately, that didn't do the trick.

How do I retrieve info from the maillog to post?

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: setting up outgoing mail

Postby gboudreau » Thu Jul 08, 2010 6:43 am

Code: Select all

tail -100 /var/log/maillog | fpaste
- Guillaume Boudreau

trebor
Posts: 51
Joined: Wed Jul 07, 2010 4:32 am

Re: setting up outgoing mail

Postby trebor » Thu Jul 08, 2010 6:47 am

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!

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: setting up outgoing mail

Postby gboudreau » Thu Jul 08, 2010 6:59 am

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:

Code: Select all

define(`SMART_HOST', `smtpout.secureserver.net')dnl
with:

Code: Select all

define(`SMART_HOST', `[smtpout.secureserver.net]')dnl
(i.e. add square brackets around the SMTP hostname.)
Then:

Code: Select all

cd /etc/mail m4 sendmail.mc > sendmail.cf make service sendmail restart
If that didn't help,

Code: Select all

fpaste /etc/mail/sendmail.mc; fpaste /etc/mail/sendmail.cf
- Guillaume Boudreau

trebor
Posts: 51
Joined: Wed Jul 07, 2010 4:32 am

Re: setting up outgoing mail

Postby trebor » Thu Jul 08, 2010 8:23 am

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

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: setting up outgoing mail

Postby gboudreau » Thu Jul 08, 2010 9:04 am

Not sure it matters, but your quotes are wrong.

Code: Select all

define('SMART_HOST', '[plus.smtp.mail.yahoo.com]')dnl
should be:

Code: Select all

define(`SMART_HOST', `[plus.smtp.mail.yahoo.com]')dnl
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

Code: Select all

TCP $h 465
now you have:

Code: Select all

TCP 465
- Guillaume Boudreau

trebor
Posts: 51
Joined: Wed Jul 07, 2010 4:32 am

Re: setting up outgoing mail

Postby trebor » Thu Jul 08, 2010 10:02 am

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/

User avatar
gboudreau
Posts: 606
Joined: Sat Jan 23, 2010 1:15 pm
Location: Montréal, Canada
Contact:

Re: setting up outgoing mail

Postby gboudreau » Thu Jul 08, 2010 10:04 am

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...
- Guillaume Boudreau

Who is online

Users browsing this forum: No registered users and 40 guests