Author Topic: How do one create his own smtp server??  (Read 3043 times)

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
How do one create his own smtp server??
« on: December 13, 2009, 01:44:36 pm »
Hi to alll

Can anyone give me some tips on how to create my own smtp server and is it possible to do with ebox 1.2 ??

Only people that wants to no more will ask!!

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: How do one create his own smtp server??
« Reply #1 on: December 14, 2009, 05:09:21 pm »
For this you should begin reading the mail chapter of eBox documetnation:
http://doc.ebox-platform.com/en/mail.html

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How do one create his own smtp server??
« Reply #2 on: December 14, 2009, 05:43:22 pm »
For this you should begin reading the mail chapter of eBox documetnation:
http://doc.ebox-platform.com/en/mail.html

I did read this documentation and It has helped me a great deal in understanding how to set up my mail server

The only thing is it doesn't help you in the sense of creating your own smtp server it only shows you how to set your smarthoast to relay through a server already setup at ether your isp or an external source

And I would like to know if its possible to make ebox a smtp server in stead of relaying through it
Only people that wants to no more will ask!!

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: How do one create his own smtp server??
« Reply #3 on: December 14, 2009, 05:55:18 pm »
Sorry If the documentation wasn't clear enough.

When mail module is enabled the SMTP server is always enabled. But if you have defined a smarthost the SMTP server relay its mail to the smarthost.

So if you want that the mail will be directly handled by eBox SMTP server you shouldnt define any smarthost. Then you should create a virtual domain, users and define email accounts for the users.
If you need more clarifications dont hesitate to ask.


HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How do one create his own smtp server??
« Reply #4 on: December 14, 2009, 06:00:02 pm »
Okay so if I understand it correctly it is already configured so I just leave my smart host clean without any smtp server to relay through and my server becomes an smtp server

One question though wouldn't other servers pick my server up as a spam server if I send mail to them then??
Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How do one create his own smtp server??
« Reply #5 on: December 14, 2009, 06:26:47 pm »
Yes it does Or so it seems to me this is what I get in my mail/queue management

host mx1.vodamail.co.za[196.11.146.148]
 said: 450 : Recipient address rejected:
Greylisted, see http://postgrey.schweikert.ch
/help/vodamail.co.za.html
(in reply to RCPT TO command)

Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How do one create his own smtp server??
« Reply #6 on: December 14, 2009, 07:10:09 pm »
Okay sending to yahoo does work so some servers will not pick me up as spam and some will
how do I setup my server to pass the greylist check??

The one I sent to my vodamail account did come through seems to me that its working nicely thank you for all your help If there is some details to follow when setting up my mail server to pass the greylist check please let me know!!!
« Last Edit: December 14, 2009, 07:14:04 pm by HANNES1985 »
Only people that wants to no more will ask!!

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: How do one create his own smtp server??
« Reply #7 on: December 15, 2009, 10:17:47 am »
Quote
One question though wouldn't other servers pick my server up as a spam server if I send mail to them then??

To use your server as spam server the spammer needs to be able to relay mail through it. Remember that eBox only relays mail when:
a) mail is sent from an address that belongs to a object that has an 'allow relay' policy
b) authorization is enabled and a valid user/password it supplied.

So as long that the spammer haven't access either to a IP from an authorized object or to one of your user's password they couldnt use it to relay mail.

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: How do one create his own smtp server??
« Reply #8 on: December 15, 2009, 10:23:04 am »
If there is some details to follow when setting up my mail server to pass the greylist check please let me know!!!

No, there is nothing you could do besides wait a while. The greylist block will be lowered when your SMTP later tries again to deliver the mail. The rationale behind greylist is that most spam software don't retry deliveries so the delay for legitimate users  is justified for avoid spam. You can read more about greylisting here http://en.wikipedia.org/wiki/Greylist

By the way, the eBox mail module has a greylist option too.

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How do one create his own smtp server??
« Reply #9 on: December 15, 2009, 03:30:07 pm »
Thanks Javier

Well I'm pleased to say that my mail server is up and running and thus far only one domain has greylist me but I went to the mail module at queue management and clicked a few times on the reschedule link and it went through!!

Thank you for your patience and thanks to the ebox staff for such a great distro !!!
Only people that wants to no more will ask!!

isaac

  • Zen Warrior
  • ***
  • Posts: 148
  • Karma: +0/-0
    • View Profile
Re: How do one create his own smtp server??
« Reply #10 on: December 15, 2009, 03:48:38 pm »
The mail module itself will try to resend messages when they are temporarily rejected so you don't really need to go to the mail queue and try to resend manually :)

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How do one create his own smtp server??
« Reply #11 on: December 15, 2009, 03:52:12 pm »
Thank you verry much Isaac

Could you mabe have a look at my other post thats the last thing that needs to be sorted in my server

http://forum.ebox-platform.com/index.php?topic=2432.0
Only people that wants to no more will ask!!

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How do one create his own smtp server??
« Reply #12 on: January 07, 2010, 12:04:11 am »
Hi guys

554 5.7.1 relay access denied

this is the error I get now and my mail config is still the same but on a new server !

Sending mail through e groupware does work so all dns is configured correctly but the mail from any one of my client pc`s does nit relay

I did create all the users
all the users is part of a object
the object has mail relay enabled
tls for smtp and auth is both on in the server

my mail client is Microsoft outlook
configured my email client correctly (It does send mail within my domain)
my smtp server requires authentication is on and the tick use same settings as incoming mail server

What can still be wrong in my setup coz I tried for 3 days on end now without success



Only people that wants to no more will ask!!

Javier Amor Garcia

  • Zentyal Staff
  • Zen Hero
  • *****
  • Posts: 1225
  • Karma: +12/-0
    • View Profile
Re: How do one create his own smtp server??
« Reply #13 on: January 07, 2010, 08:24:42 am »
Quote
configured my email client correctly (It does send mail within my domain)

You must understand that 'send email within my domain' is the same that "receiving mail by domain's user" and of course is not restricted.

You say that you were in a new server, maybe now your client reaches the server from a different IP and your network object doesnt apply anymore. You cnac check this or forget about networks objects and configure your email client to use SMTP authentication.

HANNES1985

  • Zen Warrior
  • ***
  • Posts: 141
  • Karma: +0/-0
    • View Profile
    • CSIWISP
Re: How do one create his own smtp server??
« Reply #14 on: January 07, 2010, 11:06:21 am »
Thank you for the comments.
As ive said i did set my clients to SMTP authentication but still access relay denied is there any logs where i can check why the sever denies me.
if i create objects with my network and add that to my mail/general/relay policy for network objects wil this effects the way the smtp server respond if not what can i do to relay tru my smtp server.
i know the mail works in egroupware web mail becouse it sends to internan and external domains so we can narrow from to postfix confic i hope this helps with my problem letter. 
Only people that wants to no more will ask!!