bmx0r Posted September 30, 2009 Posted September 30, 2009 I want to send/receive emails locally (localhost) I have configured the following: Router, Firewalls Openend tcp port 25 and 110 on my router firewall, closed rest of firewalls ArGoSoft Mail Server .NET Freeware server config: should my DNS server be: 127.0.0.1? user config: email@localhost Xampp (has MercuryMail ... too many options) php server for testfile.php Outlook Express Created 1 account email@localhost for sending and receiving emails Testfile.php keep getting error 501 "Account does not exist" <_< Does anybody have an idea why this keeps happening? testfile.php <? // send e-mail to ... $to="email@localhost"; // Your subject $subject="Test"; // From $header="from: your name <email@localhost>"; // Your message $message="Hello \r\n"; $message.="This is a test\r\n"; $message.="Test again "; // send email $sentmail = mail($to,$subject,$message,$header); // if your email succesfully sent if($sentmail){ echo "Email Has Been Sent ."; } else { echo "Cannot Send Email "; } ?> running testfile.php with mail sever on [SYST XXXXXX 30-09-2009 11:39:41] Starting the smtp service at 0.0.0.0:25 [SYST XXXXXX 30-09-2009 11:39:41] smtp service started [SYST XXXXXX 30-09-2009 11:39:41] Starting the pop3 service at 0.0.0.0:110 [SYST XXXXXX 30-09-2009 11:39:41] pop3 service started [SYST XXXXXX 30-09-2009 11:39:41] Starting delivery service [SYST XXXXXX 30-09-2009 11:39:41] Delivery service started Warning: mail() [function.mail]: SMTP server response: 501 Account does not exist in C:\Program Files\xampp\htdocs\filename.php on line 14 Cannot Send Email mail server log [SMTP 000000 30-09-2009 11:40:07] Received SMTP connection from 127.0.0.1 [SMTP 000000 30-09-2009 11:40:07] 220 localhost ArGoSoft Mail Server Freeware v.1.0.0.3 at Wed, 30 Sep 2009 09:40:07 GMT [SMTP 000000 30-09-2009 11:40:07] HELO compute [SMTP 000000 30-09-2009 11:40:07] 250 Welcome 127.0.0.1, nice to meet you... [SMTP 000000 30-09-2009 11:40:07] MAIL FROM:<email@localhost> [SMTP 000000 30-09-2009 11:40:07] 250 Sender "email@localhost" OK... [SMTP 000000 30-09-2009 11:40:07] RCPT TO:<email@localhost> [SMTP 000000 30-09-2009 11:40:07] 501 Account does not exist [SMTP 000000 30-09-2009 11:40:07] QUIT [SMTP 000000 30-09-2009 11:40:07] 221 Goodbye [SMTP 000000 30-09-2009 11:40:07] SMTP connection with 127.0.0.1 ended after 9-10 min. I get a response from pop3 [POP3 000000 30-09-2009 11:49:19] +OK ArGoSoft Mail Server .NET Freeware v.1.0.0.3 at Wed, 30 Sep 2009 09:49:19 GMT [POP3 000000 30-09-2009 11:49:19] USER email@localhost [POP3 000000 30-09-2009 11:49:19] +OK Send password [POP3 000000 30-09-2009 11:49:19] PASS XXXXXXXX [POP3 000000 30-09-2009 11:49:19] +OK User email@localhost successfully authenticated. Mailbox is ready. [POP3 000000 30-09-2009 11:49:19] STAT [POP3 000000 30-09-2009 11:49:19] +OK 0 0 [POP3 000000 30-09-2009 11:49:19] QUIT [POP3 000000 30-09-2009 11:49:19] +OK Goodbye [POP3 000000 30-09-2009 11:49:19] POP3 connection with 127.0.0.1 ended after 39-40 min. I get another response from pop3 [POP3 000001 30-09-2009 12:19:19] +OK ArGoSoft Mail Server .NET Freeware v.1.0.0.3 at Wed, 30 Sep 2009 10:19:19 GMT [POP3 000001 30-09-2009 12:19:19] USER email@localhost [POP3 000001 30-09-2009 12:19:19] +OK Send password [POP3 000001 30-09-2009 12:19:19] PASS XXXXXXXX [POP3 000001 30-09-2009 12:19:19] +OK User email@localhost successfully authenticated. Mailbox is ready. [POP3 000001 30-09-2009 12:19:19] STAT [POP3 000001 30-09-2009 12:19:19] +OK 0 0 [POP3 000001 30-09-2009 12:19:19] QUIT [POP3 000001 30-09-2009 12:19:19] +OK Goodbye [POP3 000001 30-09-2009 12:19:19] POP3 connection with 127.0.0.1 ended Any idea why the smtp server cannot send an email (to an existing account)?
bmx0r Posted September 30, 2009 Author Posted September 30, 2009 Nope, afaik argosoft mail server does not require php.ini to be configured... followed this tutorial I tried configuring php.ini before and it didn´t help Or are you advising me to use MercuryMail? I´ll look into that later on ... (I know this is the osc forum, but anything involved in the osc process (like an email server) is part of that imo) I was hoping anyone could tell from my log file what is happening / could be the problem
bmx0r Posted September 30, 2009 Author Posted September 30, 2009 -turned on smtp authentication in mail server config and outlook account. -the .php file now echos `email has been sent` :) -outlook express still doesn´t receive an email ... error 10061 ... port 25 still blocked -netstat -an: both port 25 and 110 are listening -telnet 127.0.0.1 25 : ... nothing :blink: it did connect before don´t reply yet, i might figure it out myself ... :P
Recommended Posts
Archived
This topic is now archived and is closed to further replies.