LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   SMTP problem (https://www.linuxquestions.org/questions/linux-newbie-8/smtp-problem-715062/)

Raakh 03-28-2009 06:35 AM

SMTP problem
 
OS=centOS Enterprise linux 5.x
Qmail


-bash-3.1# telnet localhost smtp
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 system1 - Welcome to Qmail ESMTP
ehlo host
250-system1 - Welcome to Qmail
250-STARTTLS
250-PIPELINING
250-8BITMIME
250-SIZE 20971520
250 AUTH LOGIN PLAIN CRAM-MD5
mail from: webmaster
250 ok
rcpt to: webmaster@domain.com
553 sorry, your envelope sender has been denied (#5.7.1)


JavaMail throwing the following error:
javax.mail.SendFailedException: Invalid Addresses; nested exception is: com.sun.mail.smtp.SMTPAddressFailedException: 553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)

Thanks & best regards

Mogget 03-28-2009 09:10 AM

I'm thinking you might have forgotten to remove the # infront of mynetworks_style for your host.

Choose host if you only want localhost to be able to connect. Also you could specify specific machines ip adresses that should be able to connect and use the relay function.

Anyway i think you should be able to telnet in and get it working by removing the hash in front of mynetworks_style of your choise asuming you have configured everything else correct.

Raakh 03-28-2009 09:37 AM

Quote:

Originally Posted by Mogget (Post 3490583)
I'm thinking you might have forgotten to remove the # infront of mynetworks_style for your host.

Choose host if you only want localhost to be able to connect. Also you could specify specific machines ip adresses that should be able to connect and use the relay function.

Anyway i think you should be able to telnet in and get it working by removing the hash in front of mynetworks_style of your choise asuming you have configured everything else correct.

Thanks for your reply

This is my /etc/tcprules.d/tcp.smtp
127.:allow,RELAYCLIENT="",DKSIGN="/var/qmail/control/domainkeys/%/private"
:allow,BADMIMETYPE="",BADLOADERTYPE="M",CHKUSER_RCPTLIMIT="50",CHKUSER_WRONGRCPTLIMIT="10",DKSIGN="/var/qmail/control/domainkeys/%/private"


I am not finding here any "mynetworks_style" words or I believe I not understand. can you please be more specific

Thanks again & best regards

bathory 03-28-2009 10:28 AM

This is strange. The errors you get mean 2 different things:
Quote:

553 sorry, your envelope sender has been denied (#5.7.1)
This means that you have somehow blacklisted the sender address. Try to use webmaster@domain.com as the "mail from:" subject and see if it works. And better use "ehlo host.domain.com" instead of "ehlo host".
Also check for the existence of badmailfrom file and its contents just in case.
Quote:

553 sorry, that domain isn't in my list of allowed rcpthosts (#5.5.3 - chkuser)
That means that domain.com is not listed in rcpthosts file. I guess this is your local domain name you're trying to send mail.


All times are GMT -5. The time now is 08:15 PM.