Link to home
Start Free TrialLog in
Avatar of CRAK
CRAKFlag for Netherlands

asked on

Setting up outgoing SMTP mail

500pt for a complete & detailed "cookbook" how to configure my server, mailboxes and location documents.
I have managed to make a few things work, but only sometimes. I never got the whole in perfect condition (occasional error, strange sent by's etc.). I could fiddle around for another week, but I'll plead ignorant instead: my EE-friends know best!

My ingredients are a Win98 box, running a fresh install of Domino 6.5 (single server) and a few Notes 6.5 clients.
This is just a home project.

There are a handfull of users, each having 2 locations, representing local mail and server based mail.
Either way, I would like each outgoing message to have "normal" SendBy and ReplyTo fields, preferably in RFC 822 format, otherwise in RFC 821. No "%" and/or organisational references.
I don't think that I'll be using the server to route notes mail from client to client shortly. All will be going outside through SMTP for now.

Clients send & receive mail directly to the internet using POP and SMTP accounts. The server needs outgoing SMTP; perhaps at a leter stage (haven't got a domain name yet) incoming.

To make things easy to grasp (esp. for me!), lets assume my notes server is called "server/ou/org/nl". It connects through a router and an adsl modem (with fixed IP) to the internet. The router has a dns entry "server" with a fixed internal IP address. I plan to set up modem + router to direct incoming smtp, html requests (and whatever) to my server.

I can choose from two smtp servers on the internet to send mail to (failover?): smpt.isp1.nl and smtp.isp2.info.
Users' mail adresses are all user1.org@isp1.nl, user2.org@isp1.nl etc.

And: I have no intention to become an open relay host....  (Duh!)

I'll only be able to reconfigue my server in the evening (CET). This may slow down my response times.
Avatar of Bozzie4
Bozzie4
Flag of Belgium image

Win 98 and Domino ?  You must be joking !  Even for a home project !

Anyway, the advice before the actual steps:
- if you have a fixed ip, you may consider running your own mail service.  If you do use the domino server as your mailsystem, I think it's way better than to let your clients use pop to retrieve their mail.  You only need to buy a domain name (an nl domain doesn't cost much, a com domain even only 19 Euros).  You do need to check with your provider that they don't block smtp !
- what do you need  a server for, if you are sending and receiving mail by pop/smpt anyway ?

cheers,

Tom

Avatar of CRAK

ASKER

Joking? Me? Nope....
Hold on to something firm, like your desk.... its a P-133! S..L..O..W.. but working!
I currently use its HTML task, it replicates a few databases between clients and is just there to play around with. Only alternative is to donate it to a museum.
I do want it to be a mail/webserver in the near future. Even this slow. A domain name is the only investment I am willing to make, so I'm adapting my database designs to its speed. You'll be surprised! I already have bi-lingual support, personalised stylesteets (for registered users) etc. 5 frames get all the data they need from just a single cookie and a single DbLookup.
Of course some of the pressure that you and I would normally put on the server is now put on the clients using JS. That's my challenge.
Its lack of speed won't the a bottleneck once it goes online either: with only a few friends and family members (spread over different timezones in the world) it won't get a lot of requests. The 416 kbps upload will be sufficient too as I don't have a lot to tell the world.

Can you guide me through the steps to set it up as a safe mailserver?
ASKER CERTIFIED SOLUTION
Avatar of Bozzie4
Bozzie4
Flag of Belgium image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CRAK

ASKER

Enable smtp.... is that under "ports"?
Can you PLEASE give an example of what I should enter in the config. doc. (and others)? I'm mixing up "domains" (like the isp's or my own "org") and probably a few other things. The reason why I posted the question whas that I really need to be guided here. I'm sick and tired of making changes, not knowing if I did the right thing. I'm a developper, not an administrator.

Regarding POP: I'll start off forwarding mail from my ISP (zonnet.nl). They filter spam and perform viruschecks. I can't complain at all!
I used to be at the dutch branch of Sjef's provider (you must have his address). They starting similar services after I left. I never got another one of those blue pills offered since!

The server is running antivirus + firewall. The router also has a firewall.
Avatar of Andrea Ercolino
Andrea Ercolino

Hi CRAK.

I had almost the same base a year ago: a 1999 Inspiron 3500 DELL laptop with 128MB of RAM, Win98, Domino 5.05, two Notes clients (one local and one remote through the Internet), a 256/64 kbps ADSL and a router.

Domino ran a little production website, mail routing for less than 10 mailboxes, and served as a dev environment for my "homework". The system worked continuosly for 4 years, like a pro ;-) and I had no problem with it, but the DELL's LCD began to crack down (plastics), so I was afraid of something worse and changed all. But it worked fine, for all that time night and day. And the configuration and tuning was also easy, almost "out of the box". But I didn't use any external service, and the router was my firewall.
Avatar of CRAK

ASKER

That's good new, thanks. Needed any special protection measures?
As a matter of fact the PC has already been running earlier versions for a few years now, for home use (like replication). I I just want to take it one step further. Webserver, mail, perhaps WAP. It would be great if I could integrate PHP and domino, PHP collecting data like traffic info from other sites (my daily route), and domino offering it as SMS (some mail to SMS service) or WAP for my nokia 6600.
Just a few challenges like that.....
I'll probably need another hand in future <LOL> !

Haven't got SMTP out up and running yet though.
I'll try in an hour or 3.
Well, the only problem was my fault: I left open the mail service for relay... and they began using all my server for sending spam... it was awful!!

Avatar of CRAK

ASKER

It's scheduled for a 1st test now.
It'll probably come out clean as I haven't told my router yet to direct incoming traffic on port 25 to the server.
(Thanks for the ordb-tip, Tom)
Avatar of CRAK

ASKER

Mail out is working. I had not created a global domain document.

The presentation of the senders' adresses is still somewhat troublesome? Both local and server based mail.
E.g. local: I used to set the mailfile's owner to whatever was supposed to show left of "@". R6.5 doesn't allow that. I already did, but they don't expect people to set the profiles using code, do they?
And another thing that crossed my path.... do I need X.400?

Close to finishing this one!
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of CRAK

ASKER

Ok... lets drop X.400. Thanks.

I just sent out a few test messages to myself over the internet.
Local mail (though user's smtp account) appears to be sent by:
  Ralph_Kersten/OU/O/C%O@ISPdomain.nl
A reply is adressed there as well. I hear people have trouble replying to such adresses. I'm not surprised.

This used to be (<=R6.0) a matter of internet address and mail domain on the location doc and the user part of the mail adress as mailbox owner. If I try that now (@SetProfileField as the mailbox won't allow me) my server based mail gets screwed up.

Server based mail appears to work ok. All in RFC822 too!

I'd like both ways to work. This tiny litte server may (probably will) die on me one day. If my internet site (when ready) goes down, pitty but no one gets hurt. If mail goes down, I may get in a bit more trouble!
Avatar of CRAK

ASKER

Confirmation as "it can't be done" would also be of help....
Local mail is stil controlled by the Location doc, but the server may try to change the Location doc unless you set it to not update.
Avatar of CRAK

ASKER

Looks like I can't have it both ways. Mail owner stays involved....
If I change the owner to "ralph.kersten" (agent), then all is fine (local). Normally 6.5 wouldn't allow me to do so though. And if affects the way the server handles mail.

You make it sound like its not impossible, but I need more detail to find out what I did wrong.
Hope to close this q soon....
A single location would not be used for oth SMTP utbound and Domino outbound, so what's the problem?
Avatar of CRAK

ASKER

Sorry for the late response. I haven't been able to put in any effort over the last two weeks or so.

I am using two locations per account: one is server based, the other for local mail (still on LAN, same home server - should become dial up or so in future).
STMP account is only available in the location for local use.

You you want me to upload exports of certain documents, like location doc's?
Avatar of CRAK

ASKER

Not entirely solved yet, but I can live with the limitation (server based only or reply address gets screwed up) for a while.
I rather post a new question for that problem some other day than drag this open one along for another hour.
Pitty I didn't get the "cookbook" out....

With christmas nearly over: have a good 2005!
C U all around @EE!