Monday, March 3, 2008

Run qmailrocks on port 25 and 26

Edit /etc/services
add following lines
Code:
smtp2 26/tcp mail #Simple Mail Transfer
smtp2 26/udp mail #Simple Mail Transfer
cp -Rf /var/qmail/supervise/qmail-smtpd /var/qmail/supervise/qmail-smtpd2
cd /services
ln -s /var/qmail/supervise/qmail-smtpd2
qmail-smtpd2 Edit /var/qmail/supervise/qmail-smtpd2/run
Change Following line :
Code: -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp \
To
Code: -u "$QMAILDUID" -g "$NOFILESGID" 0 smtp2 \
Edit /var/qmail/bin/qmailctl
Add following lines in respective sections.
Code:
start)
if svok /service/qmail-smtpd2 ; then
svc -u /service/qmail-smtpd2 /service/qmail-smtpd2/log
echo "Starting qmail-smtpd2"
else
echo "qmail-smtpd2 supervise not running"
fi
stop)
echo " qmail-smtpd2"
svc -d /service/qmail-smtpd2 /service/qmail-smtpd2/log
stat)
svstat /service/qmail-smtpd2
svstat /service/qmail-smtpd2/log
pause)
echo "Pausing qmail-smtpd2"
svc -p /service/qmail-smtpd2
cont)
echo "Continuing qmail-smtpd2"
svc -c /service/qmail-smtpd2
restart)
echo "* Stopping qmail-smtpd2."
svc -d /service/qmail-smtpd2 /service/qmail-smtpd2/log
echo "* Restarting qmail-smtpd2."
svc -u /service/qmail-smtpd2 /service/qmail-smtpd2/log
Now restart Qmail using following command :
qmailctl restart
Verify with qmail stat & netstat command
qmailctl stat
nestat -an

Receiving reported error ( 0x80040900)

Receiving reported error ( 0x80040900) : The server name you have entered cannot be found in the network. From the error message it appears that the computer can't resolve the domain name. You should try checking your email using your webmail http://mail.exampledomain.com ( replacing exampledomain.com for your domain name) If that fails you should try pinging the mail server to see if the domain name resolves and is reachable. You may want to look at the following knowledge base article. http://support.microsoft.com/default.aspx?scid=kb;en-us;813514

Error :server ready', Port: 110, Secure(SSL): 0x800CCC60

Looks to me like your Outlook Express is trying to send mail out on port 110 (POP) rather than port 25 (SMTP) and that's a problem... Go into Tools, then Accounts, click Properties for the account in question, go over to the Advanced tab, and make sure it's using port 25 for SMTP and port 110 for POP.

Error: 0x800cccofm

The error you are getting can be because of using another email account from a different ISP.you would usually need to change the smtp server info to the isp's that you are on.

Error: 0x800CCC0B

----> Needs to check 'My Server Requires Authentication' in Outlook Express.
Another alternative Solution :
----> This error message is caused by either a firewall blocking port 25 or your ISP blocking port 25. Port 25 is used to send your email. Steps to fix: 1. Check and make sure port 25 is opened in your firewall configuration. 2. Check with your ISP to see if they are blocking port 25.

Error: 553, 0x800CCC79

This is because Outlook Express at start-up automatically logs on to the
server to download email prior to sending any email thereby establishing the authorisation of the sender. Similarly, if you send your email by doing a full Send/Receive in Outlook Express you should not experience any difficulty. If you wish to be able to send messages without doing a full Send/Receive or if you wish to have Outlook Express active on your PC prior to connecting then..
Start Outlook Express and go to Tools menu option and select Accounts. Click on your account and choose Properties. Select the Servers tab. At the bottom of this tab in an area titled "Outgoing Mail Server" check the check box titled "My server requires authentication". Save the new setting and this will ensure that the next time you use Outlook Express it will authorise itself to the mail server in all circumstances thereby avoiding this error message.

Error Number: 0x800CCC0E

----------
The connection to the server has failed. Account: 'MainMail', Server: 'mail.mydomain.com', Protocol: SMTP, Port: 25, Secure(SSL): No, Socket Error: 10060, Error Number: 0x800CCC0E
-----------


Check to make sure that the ports 25 and 110 is not blocked on the server or by your ISP or have them unblocked if by some firewall rule. Trying telneting to that port and if it shows connection refused try disabling your firewall.

=====================================================================================

The reason you get the error is:
The Outgoing (SMTP) server requires authentication. If you are using Outlook Express you should check the box 'My server requires authentication'. In Eudora it is 'Authentication allowed'.


Your SMTP (outgoing mail server) could be blocked. Here is how to test it:
1. Go to 'Start' -> 'Run' -> type: cmd
2. When the Command prompt appears type: telnet mail.supremecenter.com 25
3. Wait a few seconds. You must see the following: '220 mail.supremecenter.com ESMTP'. This will be OK.
4. If you do not see this message, your SMTP is being blocked. In this case try the following:
- If you are behind a firewall, we may be unable to authenticate you. If you have a personal firewall, try lowering the security.
- Call your ISP and ask if they block people sending through remote SMTP's. Some are doing that, though relatively few.
- You can use your ISP's SMTP server. In your email client, put the SMTP server that you use to send out your ISP email, and your email will still appear with your domain name. Also see the error messages explanations.