Gossamer Forum
Home : Products : Links 2.0 : Installation -- Unix :

SMTP: connect() failed

Quote Reply
SMTP: connect() failed
 
Unable to send addition message. Reason: SMTP: connect() failed. reason: Can't assign requested address

I changed my sendmail to smtp since sendmail would not work. I still am unable to get email working. HELP! Here are my settings:


# Email Options
# --------------------------------------------------------
# NOTE: Be sure to edit the text of the message. It can be found
# in the templates directory: email-add.txt, email-del.txt and
# email-mod.txt respectively.

# Set only ONE of either $db_mail_path which should go to a
# mail program like sendmail, or $db_smtp_server which will use
# a SMTP server. Do not set both at once!

# PATH of sendmail. # SMTP Server
$db_mail_path = ''; $db_smtp_server = 'mail.fbnet.net';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'its-here@virtualave.net';

# Notify visitors automatically when their links are validated?
$db_email_add = 1;

# Notify visitors automatically when their links are modified?
$db_email_modify = 1;

# Log all outgoing messages? Put the full path to a logfile and make sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty
# big!
$db_mailer_log = '/home/its-here/public_html/cgi-bin/admin/email.log';


Quote Reply
Re: SMTP: connect() failed In reply to
I am wondering if this may be the problem:

Quote:
$db_admin_email = 'its-here@virtualave.net';

Try this and see if it works:

Quote:
$db_admin_email = 'its\-here@virtualave.net';

Another thing to consider is that your email is coming from virtualave.net but the smtp server is 'mail.fbnet.net' and that server might not accecpt outgoing mail from another domain name.

I hope this helps.

[This message has been edited by Bobsie (edited July 10, 1999).]
Quote Reply
Re: SMTP: connect() failed In reply to
Try this and see if it works:


quote:
--------------------------------------------------------------------------------

$db_admin_email = 'its\-here@virtualave.net';

--------------------------------------------------------------------------------

Another thing to consider is that your email is coming from virtualave.net but the smtp server is 'mail.fbnet.net' and that server might not accecpt outgoing mail from another domain name.

======================
Ok, changing the address as you suggested did not work. So I changed the address to staley@fbnet.net and now I get this error:
********************************************
SMTP: connect() failed. reason: Can't assign requested address
********************************************
Any other suggestions?
Quote Reply
Re: SMTP: connect() failed In reply to
My only other suggestion is to go back to sendmail but put a -t on the end of it in links.cfg; i.e., "/usr/sbin/sendmail -t", and see if that works with and without the \- in the email address.

I hope it works.
Quote Reply
Re: SMTP: connect() failed In reply to
***************************************
My only other suggestion is to go back to sendmail but put a -t on the end of it in links.cfg; i.e., "/usr/sbin/sendmail -t", and see if that works with and without the \- in the email address.
******************************************
I tried that and still ended up with errors, so I went and left the above code and changed email addresses. IT WORKS! For some reason the "-" was causing a conflict or something in the code, so when I changed and used a different email address it works like a charm. Thank you very much! Now I'm ready once I get the database loaded. (Except for figuring out the verify, but I'm not sure I'm up to handling that just yet Smile

Thanks for your time, you are a life saver.

Beckie