Koozali.org: home of the SME Server

E-mail setting

Tue Hellstern

E-mail setting
« on: March 10, 2002, 06:26:53 PM »
Hi,
I have some problems with my e-mail settings.
My web site is hosted outside my company and I get my mail with Outlook/POP3.
Now I want to use my e-smith server to get the mail, and then use Outlook to get the mail from the e-smith server. The web site stays on the other server.
But I can’t get it to work. If I use “Multi-drop” it seems like I can retrieve the mail send, but it doesn’t get “out” to the right accounts.
I have looked in the HoTo and the documentation but I can’t get it.

Tue Hellstern

Tue Hellstern

Re: E-mail setting
« Reply #1 on: March 10, 2002, 09:04:49 PM »
Hi again
I can receive mail to the Admin account with POP3 and multi drop, but how do I get it distributed to the right user?

Tue Hellstern

Kelvin

Re: E-mail setting
« Reply #2 on: March 11, 2002, 12:47:36 AM »
Hi Tue,

Have you got your ISP to route all your domain mail to one POP3 mailbox for collection ? If so, your ISP could be changing the mail headers as they move the mail. You will need Stephen Noble's procmail add-on from the contrib section to process the mail. If you examine your mail headers and they appear to be intact with the correct receipient info, you will need to post more info here.

Kelvin

Tue Hellstern

Re: E-mail setting
« Reply #3 on: March 11, 2002, 12:58:53 AM »
Hi Kelvin,
It doesn’t look like the mail headers are change. If I use webmail and login as Admin I can se the mail address as info@f1-support.dk and I have a user named info, but the mail never gets down to the info user. If the header should be change without I can see it, what would the change normally be and what should I do about it?

Tue

Kelvin

Re: E-mail setting
« Reply #4 on: March 11, 2002, 01:06:06 AM »
Hi Tue,

Try examining the raw headers of the mail message (ie. pickup the mail with Lookout and then look at the raw headers and see if the TO of X-Delivered-To (or something to that effect) lines have been modified.

Kelvin

Tue Hellstern

Re: E-mail setting
« Reply #5 on: March 11, 2002, 01:09:08 AM »
Hi Kelvin,
Ho do I do that?

Tue

Tue Hellstern

Re: E-mail setting
« Reply #6 on: March 11, 2002, 01:11:37 AM »
Hi,
I think I found It;

-------------------------------------------
Return-Path:
Delivered-To: postmaster@esmith.mycompany.xx
Received: (qmail 9669 invoked by alias); 10 Mar 2002 22:05:07 -0000
Delivered-To: alias-localdelivery-postmaster@mycompany.xx
Received: (qmail 9666 invoked by uid 8); 10 Mar 2002 22:05:06 -0000
Received: from localhost (127.0.0.1)
   by localhost with SMTP id smtpd2K06eO; Sun, 10 Mar 2002 17:05:04 EST
Received: from mail.f1-support.dk [80.63.53.19]
   by localhost with POP3 (fetchmail-5.7.4)
   for postmaster@mycompany.xx (multi-drop); Sun, 10 Mar 2002 17:05:04 -0500 (EST)
Received: from  hotmail.com (207.68.163.112) by MAIL2 (MailMax 4. 7. 1. 4) with ESMTP id 74241740 for info@f1-support.dk; Sun, 10 Mar 2002 22:57:05 +0100 RST
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
    Sun, 10 Mar 2002 13:51:01 -0800
Received: from 80.62.50.102 by sea1fd.sea1.hotmail.msn.com with HTTP;
   Sun, 10 Mar 2002 21:51:00 GMT
X-Originating-IP: [80.62.50.102]
From: "Tue Hellstern"
To: info@f1-support.dk
Bcc:
Subject: gjg
Date: Sun, 10 Mar 2002 21:51:00 +0000
Mime-Version: 1.0
Content-Type: text/plain; format=flowed
Message-ID:
X-OriginalArrivalTime: 10 Mar 2002 21:51:01.0014 (UTC) FILETIME=[AB19B360:01C1C87D]
X-Fetchmail-Warning: recipient address info@f1-support.dk didn't match any local name
------------------------------------------

Tue

Kelvin

Re: E-mail setting
« Reply #7 on: March 11, 2002, 01:21:20 AM »
Hi Tue,

This is a pretty obvious question but I need to ask it anyway.

I am assuming your domain is f1-support.dk.

When you configured e-smith, did you specify that your domain is f1-support.dk and NOT the default mycompany.xx ? If so, you will need to run through the config screen again and tell SME that your domain is indeed f1-support.dk or your e-mails will not get sorted correctly. Alternatively, you could set up a virtual domain called f1-support.dk and your mails will still get sorted to the right users.

Kelvin

stephen noble

Re: E-mail setting
« Reply #8 on: March 11, 2002, 04:25:37 AM »
>Have you got your ISP to route all your domain mail to one POP3 mailbox for >collection ? If so, your ISP could be changing the mail headers as they move the >mail. You will need Stephen Noble's procmail add-on from the contrib section to >process the mail.

kelvin has answered the question,  go and set up procmail

regards
stephen noble

Tue Hellstern

Re: E-mail setting
« Reply #9 on: March 11, 2002, 11:02:19 AM »
Hi,
You are right about the domain name, it is not set to my domain f1-support.dk. But if I set it to f1-support.dk I can’t get my mails. The extern mail server has the address mail f1-support.dk. If my local domain is set to f1-support.dk, and I ping mail.f1-support.dk I get the local IP of the server, and I don’t get any mails.
I’ am a little confused, I needed to set my domain to f1-support.dk to get my mail sorted, but if I do that I can’t get any mails from my extern mail server :-(
Is the solution Procmail or what??
Tue

Kelvin

Re: E-mail setting
« Reply #10 on: March 11, 2002, 12:09:14 PM »
Hi Tue,

That's fixable. Here's how.

Now that your server domain is mycompany.xx, do this :-

ping mail.f1-support.dk

From this you should be able to get the IP address of the ISP's mail server assigned to handle your e-mails.

Now, reconfigure your SME server to your proper domain name (ie. f1-support.dk).
From a web browser, get to the server manager and click on Hostnames and Addresses. Look for the entry mail and click on modify.

Assuming your are using SME 5.1.2, change location to Remote and enter the ISP mail server IP address you got from above into the line called Global IP then click on Modify.

That should do it. To test, ping mail.f1-support.dk and you should get the IP address of the ISP's mail server.

Let me know how you go.

Kelvin

Tue Hellstern

Re: E-mail setting
« Reply #11 on: March 11, 2002, 12:42:46 PM »
Hi Kelvi,
It works :-)  Thanks a lot for you help and time.

Tue

Kelvin

Re: E-mail setting
« Reply #12 on: March 11, 2002, 12:51:30 PM »
No worries. Glad to help.

Kelvin

Tue Hellstern

Re: E-mail setting
« Reply #13 on: March 11, 2002, 01:05:16 PM »
Hi Kelvin,
I just found a small problem, if I tried to get my extern web server, with the address www.f1-support.dk, I get the local e-smith server www page. What can I do about that

Tue

Kelvin

Re: E-mail setting
« Reply #14 on: March 11, 2002, 01:14:32 PM »
Hi Tue,

You fix this the same way you fix the e-mail problem. You will need to find the IP address for the real www.f1-support.dk first (either by using a different computer and dialing up the internet directly) or by changing the domain name on the SME server temporarily. If you ping www.f1-support.dk you will then get the IP address of the real www.f1-suppport.dk.

Once again, after changing your SME server back to your domain name, go to server manager and bring up Hostnames and Addresses. There you will find an entry for www (just like mail) and you need to change the IP address there to the correct Global IP address.

Kelvin