Hello,

the error is sent if the mail server didn't response. The default timeout is 5 
seconds - you can try to increase it using the "timeout" option:

--8<--
set mailserver 209.236.133.7 port 2525
        username "krfsms" password "****"
        using tlsv1
        timeout 30 seconds
--8<--

If it won't help, please get the network trace.

Regards,
Martin



On Aug 29, 2012, at 6:17 PM, Jose Amoros <[email protected]> wrote:

> Greetings,
> 
> I am trying to complete my monit setup by sending emails through our external 
> server. Below is what I have in monitrc:
> 
> set mailserver 209.236.133.7 port 2525
>         username "krfsms" password "****"
>         using tlsv1
> 
> The error we get is:
> 
> Aug 29 07:43:11 bhubca monit[4061]: Sendmail: error receiving data from the 
> mailserver '209.236.133.7' -- Resource temporarily unavailable
> Aug 29 07:43:11 bhubca monit[4061]: Aborting event
> 
> I know that we are able to connect to the server and send email because I 
> have a script ( 
> http://thinkinginsoftware.blogspot.com/2012/06/test-email-over-tls-with-pob-recipe.html)
>  that connects to the server and sends the email. Here is what I get after 
> running the script:
> 
> ---
> SSL handshake has read 2797 bytes and written 575 bytes
> ---
> New, TLSv1/SSLv3, Cipher is RC4-SHA
> Server public key is 2048 bit
> Secure Renegotiation IS supported
> Compression: NONE
> Expansion: NONE
> SSL-Session:
>     Protocol  : TLSv1
>     Cipher    : RC4-SHA
>     Session-ID: 
> 69060000FBF71F4E9781C059D6B3BF22538422559C765F98A69AEA19745CA22A
>     Session-ID-ctx:
>     Master-Key: 
> 41B00776A654AB47C7673D4968A63504B958FDB71822699DE0F1A19209AD5200A52AA1ED3BF9D0969AB75D626064D833
>     Key-Arg   : None
>     PSK identity: None
>     PSK identity hint: None
>     SRP username: None
>     Start Time: 1346242425
>     Timeout   : 300 (sec)
>     Verify return code: 20 (unable to get local issuer certificate)
> ---
> 250 CHUNKING
> ehlo
> 250-webmail.kaufmanrossin.com Hello [216.176.58.99]
> 250-SIZE 26624000
> 250-PIPELINING
> 250-DSN
> 250-ENHANCEDSTATUSCODES
> 250-AUTH LOGIN
> 250-8BITMIME
> 250-BINARYMIME
> 250 CHUNKING
> auth login
> 334 VXNlcm5hbWU6
> a3Jmc21z
> 334 UGFzc3dvcmQ6
> a3Jmc0AyNTI1
> 235 2.7.0 Authentication successful
> mail from: <[email protected]>
> 250 2.1.0 Sender OK
> rcpt to: <[email protected]>
> 250 2.1.5 Recipient OK
> data
> 354 Start mail input; end with <CRLF>.<CRLF>
> from: [email protected]
> to: [email protected]
> subject: Testing BHUBCA
> Test
> 
> --
> Any help would be greatly appreciated!
> --
> To unsubscribe:
> https://lists.nongnu.org/mailman/listinfo/monit-general

--
To unsubscribe:
https://lists.nongnu.org/mailman/listinfo/monit-general

Reply via email to