You are viewing a plain text version of this content. The canonical link for it is here.
Posted to server-user@james.apache.org by Me Self <wm...@gmail.com> on 2010/04/14 14:19:16 UTC

Minimal SMTP setup?

I would like to use James 2.3.2 for sending mails when users create an
account on my website. I tried setting up James to only enable SMTP
but when I send testmails they are usually rejected by gmail as spam.
I havent set up a DNS MX record or incoming POP3 could this have any
influence on what the receiving mailservers will accept?

Inconfig.xml I set the servername:
      <servernames autodetect="true" autodetectIP="true">
         <servername>mydomain.com</servername>
      </servernames>

The server only has a local ip number 192.168.1.x because its behind a
number if routers etc.

I enabled relay from local users:
<mailet match="RemoteAddrNotInNetwork=127.0.0.1, 192.168.1*"
class="ToProcessor">
<authorizedAddresses>127.0.0.0/8, 192.168.1.*, localhost</authorizedAddresses>

To send the test mails I do this from the server (using a James user
account named "noreply" created earlier):
telnet localhost 25
ehlo mydomain.com
mail from: <no...@mydomain.com>
rcpt to: <my...@gmail.com>
data
subject: this is a message
some message

.
quit

What am I missing to make the mails acceptable to other servers?

---------------------------------------------------------------------
To unsubscribe, e-mail: server-user-unsubscribe@james.apache.org
For additional commands, e-mail: server-user-help@james.apache.org


Re: Minimal SMTP setup?

Posted by Israel Tsadok <it...@gmail.com>.
I'm not sure why you would need JAMES for this, but the article at
http://code.alexreisner.com/articles/sending-email.html contains a lot of
useful advice as to how not to get classified as spam.

I'm afraid that in your situation, without a public IP address, you might
have a hard time following some of the advice on that page. Depending on
your situation, you might consider using a paid service like
http://www.authsmtp.com/

Israel

On Wed, Apr 14, 2010 at 3:19 PM, Me Self <wm...@gmail.com> wrote:

> I would like to use James 2.3.2 for sending mails when users create an
> account on my website. I tried setting up James to only enable SMTP
> but when I send testmails they are usually rejected by gmail as spam.
> I havent set up a DNS MX record or incoming POP3 could this have any
> influence on what the receiving mailservers will accept?
>
> Inconfig.xml I set the servername:
>      <servernames autodetect="true" autodetectIP="true">
>         <servername>mydomain.com</servername>
>      </servernames>
>
> The server only has a local ip number 192.168.1.x because its behind a
> number if routers etc.
>
> I enabled relay from local users:
> <mailet match="RemoteAddrNotInNetwork=127.0.0.1, 192.168.1*"
> class="ToProcessor">
> <authorizedAddresses>127.0.0.0/8, 192.168.1.*,
> localhost</authorizedAddresses>
>
> To send the test mails I do this from the server (using a James user
> account named "noreply" created earlier):
> telnet localhost 25
> ehlo mydomain.com
> mail from: <no...@mydomain.com>
> rcpt to: <my...@gmail.com>
> data
> subject: this is a message
> some message
>
> .
> quit
>
> What am I missing to make the mails acceptable to other servers?
>
>