Re: [exim] exim configuration

Αρχική Σελίδα
Delete this message
Reply to this message
Συντάκτης: Jajati Sahu
Ημερομηνία:  
Προς: Odhiambo Washington
Υ/ο: exim-users
Αντικείμενο: Re: [exim] exim configuration
Hi Odhiambo,

Thanks for your reply.
Yes you are right, i must be very specific before asking such type of question.
Ok following is my settings and please guide if u can.

  I have two machines (FreeBSD) on the same local networks. Both have exim installed (I know only one required)
  Machine 1:
  ---------------
  /etc/hosts: ip1 machine1.domain.com
                  ip2 machine2.domain.com
  /etc/rc.conf: hostname machine1.domain.com
                    ifconfig ip1 netmask ....
  /etc/resolve.conf: domainname domain.com
  /usr/local/etc/exim/configure:
      primary_hostname machine1.domain.com
      and configured as outgoing relay for machine2.domain.com
  And have user test (say)


  Machine 2:
  ---------------
  /etc/hosts: ip1 machine1.domain.com
                  ip2 machine2.domain.com
  /etc/rc.conf: hostname machine2.domain.com
                    ifconfig ip2 netmask ....
  /etc/resolve.conf: domainname domain.com
  /usr/local/etc/exim/configure:
      primary_hostname machine2.domain.com


Now i want to send mail from root@??? to test@???
But it gives error dns lookup could not complete. I can ping between both machines using the hostname (not ip address). Also i can send mail from root@??? to my yahoo id from both machines if connect to network. But can't send mails between them. I am not using any POP, IMAP or MUA or any client. I am just using mail command to send mail and see the contens of /var/mail/test for any mails.

Futher googling, i configure machine1 as SMTP server for machine2 on configuration file of exim in machine2 (in the routers section). But still getting some error as dns lookup time out (couldn't recall). Right now i don't have the log from /var/log/exim/mainlog file. I will send them later if required.

Is there any specific settings require for gateway and dns server?

Thanks
Jajati

Odhiambo Washington <odhiambo@???> wrote:
On Wed, Jul 9, 2008 at 1:38 PM, Jajati Sahu wrote:
> Hi All,
>
> I am very new to any mailing application.
> I have installed exim on my FreeBSD machine. I want to send mail
> from one machine to another machine on the same local network. I
> configured some relay settings on configure file for exim but could
> not able to send mails to other machines.
> Any pointers or specific configurations for two machines exchanging
> mails using exim?


Hello Jajati,

E-mails are never sent between machines. Emails are sent between
e-mail addresses. For e-mail to work, there must be a domain name,
e.g. gmail.com.
In your case, you will require to configure exim (Edit the file
/usr/local/etc/exim/configure) and give it a domain name, under the
entry:

domainlist local_domains = YOUR_DOMAIN_NAME_HERE

Then you need to create user accounts on this "server" (yes, it just
became a mail server). Using outlook, you can then send mail from
user1@your_domain_name to user2@your_domain_name. However, you will
also require another application to help in the RETRIEVAL of the
e-mail. This is called POP3 server and you can use
/usr/ports/mail/dovecot for it.

The waters you have decided to step on are deep - you must be able to
read about these applications, understand how they work, configure
yours and only ask questions when you have problems and when you can
explain the nature of the problem you encounter, not a general
question like you asked, which is almost vague!


--
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

"Oh My God! They killed init! You Bastards!"
--from a /. post


       From mrten+exim@??? Thu Jul 10 09:09:15 2008
Envelope-to: exim-users@???
Received: from mail2.ii.nl ([82.94.191.121]:54939)
    by tahini.csx.cam.ac.uk with esmtp (Exim 4.69)
    (envelope-from <mrten+exim@???>) id 1KGrDC-0006xl-1v
    for exim-users@???; Thu, 10 Jul 2008 09:09:15 +0100
Received: from [85.150.212.4] (port=36124 helo=kyra.ii.nl)
    by mail2.ii.nl with esmtpsa (TLS-1.0:RSA_AES_256_CBC_SHA1:32)
    (Exim 4.63) (envelope-from <mrten+exim@???>) id 1KGrCU-0000Hz-Ir
    for exim-users@???; Thu, 10 Jul 2008 10:08:26 +0200
Received: from droopy.i.mrten ([192.168.27.2]:1563 helo=droopy)
    by kyra.ii.nl with esmtp (Exim 4.63)
    (envelope-from <mrten+exim@???>) id 1KGrCS-0007NY-Vc
    for exim-users@???; Thu, 10 Jul 2008 10:08:25 +0200
Date: Thu, 10 Jul 2008 10:08:19 +0200
From: Mrten <mrten+exim@???>
X-Priority: 3 (Normal)
Message-ID: <1507297270.20080710100819@???>
To: exim-users@???
In-Reply-To: <20080709214558.GA9174@???>
References: <4874AE5D.7040908@???>
    <20080709214558.GA9174@???>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-Spam-Score: -1.4 (-) 
X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00=-1.5,
    FORGED_RCVD_HELO=0.135 autolearn=no version=3.1.8
Subject: Re: [exim] message retrieval from queue
X-BeenThere: exim-users@???
X-Mailman-Version: 2.1.9
Precedence: list
Reply-To: Mrten <mrten@???>
List-Id: A user list for the exim MTA <exim-users.exim.org>
List-Unsubscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=unsubscribe>
List-Archive: <http://lists.exim.org/lurker/list/exim-users.html>
List-Post: <mailto:exim-users@exim.org>
List-Help: <mailto:exim-users-request@exim.org?subject=help>
List-Subscribe: <http://lists.exim.org/mailman/listinfo/exim-users>,
    <mailto:exim-users-request@exim.org?subject=subscribe>
X-List-Received-Date: Thu, 10 Jul 2008 08:09:16 -0000


Om 23:45 op woensdag 9 juli 2008, Dave Evans:

>> Is there an easy way to retrieve a message from the queue in rfc-[2]822 format
>> as it was sent and how it's going to be delivered (to say, a pipe) ?


> New in 4.68, "exim -Mvc". See
> ftp://ftp.exim.org/pub/exim/ChangeLogs/NewStuff-4.68


All the fun stuff is in versions you don't have :( Ah well, onwards to
backports.org ;)

Thanks!

>> It is to debug a pipe transport, the exim-part of the pipe is working
>> correctly, but the the receiving php part is not, and I want to debug why it
>> returns "defer" by running it manually.


> You've tried "exim -d+all -M messageid", right?


I have, but I had no luck there. Eventually, I cobbled together a -Mvh
and a -Mvb..

Thanks again!

Mrten.
--
Trust your own instinct. Your mistakes might as well be your own,
instead of someone else's.