December 14, 2017, 04:28:22 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: configuring sendmail  (Read 14722 times)

Offline murali

  • Linux Noob !
  • *
  • Posts: 7
configuring sendmail
« on: February 16, 2004, 04:32:06 AM »
hi guys,,
              i am new to this linux. i want to configure mail server for our
LAN, where all r windows machines except the server. every user should have his own id and all . can any one guide me how to do it?
regards,
murali.

Offline tuxi

  • Linux Noob !
  • *
  • Posts: 20
configuring sendmail
« Reply #1 on: February 16, 2004, 11:15:30 AM »
Why don't you go HERE and look for the Configuration and comilation ~~
:)

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
configuring sendmail
« Reply #2 on: February 16, 2004, 12:06:48 PM »
Hi,

Which linux distro r u using? Tell me ur distro:
I configured sendmail for Slackware and Fedora/RedHat.


BTW, have u read my post in this section

             "Slackware: Sendmail How To Make It Work Only On LAN?"
        http://www.linuxsolved.com/forums/viewtopic.php?t=179

Offline murali

  • Linux Noob !
  • *
  • Posts: 7
thanks
« Reply #3 on: February 17, 2004, 11:53:19 AM »
hi
   thanq for ur reply i want configure mail server in redhad linux9 so pls guide how to configure mail server with all client machines are windows
regards
murali.


Quote from: "dragoncity99"
Hi,

Which linux distro r u using? Tell me ur distro:
I configured sendmail for Slackware and Fedora/RedHat.


BTW, have u read my post in this section

             "Slackware: Sendmail How To Make It Work Only On LAN?"
        http://www.linuxsolved.com/forums/viewtopic.php?t=179

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
configuring sendmail
« Reply #4 on: February 18, 2004, 04:53:11 AM »
Ok Red Hat 9. I assume u have created user accounts for the windoze users in ur mail server.

1) Go to the /etc/mail directory.  Type cd /etc/mail

2) U will see a file called sendmail.mc

3) Open the file with vi and goto a line where it looks like this:
     
          DAEMON_OPTIONS('Port=smtp, Addr=127.0.0.1, MTA')
Change the value Addr from 1270.0.1 to ur server's ip address.

4) Save and exit.

5) Open a file in /etc/mail with the name "access".
U will see lines like this:
localhost               RELAY
127.0.0.1              RELAY

All u have to do is add ur server's ip address to it and followed by the keyword "RELAY"

If necessary add ur server's hostname too. For me it's richard.sybex.com                 RELAY

6) Save ur file and exit.

7) Now leave the /etc/mail directory. Type  cd /

8) Compile the /etc/mail directory by typing: make -C /etc/mail

9) To make ur configuration work, stop the sendmail service and restart it. Use the commands below:

           (i) killall -HUP sendmail
           (ii) service sendmail start

Offline murali

  • Linux Noob !
  • *
  • Posts: 7
configuring sendmail
« Reply #5 on: February 18, 2004, 08:51:59 AM »
hi thanks for ur reply,
                       i got all the points u sent.what my doubt is how to create user accounts for windows,,dont think this is silly question as i am new to this linux world i dont know mcuh.and one more doubt is in windows client machine  how can i see this mails and if i want to send mails from windows what i have to do.if u can clarify these i will be thankful to u.
regards,
murali.


Quote from: "dragoncity99"
Ok Red Hat 9. I assume u have created user accounts for the windoze users in ur mail server.

1) Go to the /etc/mail directory.  Type cd /etc/mail

2) U will see a file called sendmail.mc

3) Open the file with vi and goto a line where it looks like this:
     
          DAEMON_OPTIONS('Port=smtp, Addr=127.0.0.1, MTA')
Change the value Addr from 1270.0.1 to ur server's ip address.

4) Save and exit.

5) Open a file in /etc/mail with the name "access".
U will see lines like this:
localhost               RELAY
127.0.0.1              RELAY

All u have to do is add ur server's ip address to it and followed by the keyword "RELAY"

If necessary add ur server's hostname too. For me it's richard.sybex.com                 RELAY

6) Save ur file and exit.

7) Now leave the /etc/mail directory. Type  cd /

8) Compile the /etc/mail directory by typing: make -C /etc/mail

9) To make ur configuration work, stop the sendmail service and restart it. Use the commands below:

           (i) killall -HUP sendmail
           (ii) service sendmail start

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
configuring sendmail
« Reply #6 on: February 18, 2004, 04:20:23 PM »
How to create user accounts for windows?

1) Add the account in ur mail server. Type: useradd username (i.e. useradd richard)
2) Set the user a password. Type: passwd username (i.e. passwd richard)

How to see mails from windows? Good question :)
Here I will assume u use Outlook Express
1) Click menu Tools -> Accounts
2) Click Add -> Mails... on the Internet Account... dialog boxes.
3) These are the list of Internet Connection Wizard Fields and wat u should enter for ur config.

i.    Display Name = You Name
ii.   Email Address = username@ip_address_of_ur_mail_server
iii.  My Incoming Mail Server is a = ur mail server type: i assume u use POP3
iv.  Incoming Mail = your_mail_server_ip
iv.  Outgoing Mail = you_mail_server_ip
v.   Account Name = username_you_just_created_in_mail_server
vi.  Password = password_you_created_for_the_username_in_mail_server

One last thing: If u use POP3, make sure u have started the POP3 service.
How? Just type setup in the command line and go to System Services. Just check the POP3 service (ipop3....) and quit. Restart ur mail server.

Offline murali

  • Linux Noob !
  • *
  • Posts: 7
configuring sendmail
« Reply #7 on: February 21, 2004, 05:19:52 AM »
hi,
   with this setup can we send mails to outside world like from my client machine to XXXXX@yahoo.com
regards,
murali.

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
configuring sendmail
« Reply #8 on: February 21, 2004, 06:18:26 AM »
No, this will only make ur mail server to work on LAN only.

Offline murali

  • Linux Noob !
  • *
  • Posts: 7
configuring sendmail
« Reply #9 on: February 21, 2004, 12:25:53 PM »
hi,
    then how to make my server to work for outside world also.pls tell me changes i have to made coz soon my boss will be registering a server soon.
regards,
murali.





Quote from: "dragoncity99"
No, this will only make ur mail server to work on LAN only.

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
configuring sendmail
« Reply #10 on: February 21, 2004, 01:45:29 PM »
Hi Murali,

    Please to refer to this link's step by step guide. Hope it helps u

http://www.linuxhomenetworking.com/linux-hn/sendmail.htm

I haven't really try before making sendmail working on Internet honestly, but if u really have no way out, i try my best to tell u the way around sendmail's macro configurations.

Offline murali

  • Linux Noob !
  • *
  • Posts: 7
configuring sendmail
« Reply #11 on: February 22, 2004, 08:15:38 AM »
hi ,
    i am disturbing u again.i tried to configure dns with the gui facility they provided with the redhat linux9, :( but its not working.can u give me the step by step procedure of configuring dns.
thankq
regards,
murali.


Quote from: "dragoncity99"
Hi Murali,

    Please to refer to this link's step by step guide. Hope it helps u

http://www.linuxhomenetworking.com/linux-hn/sendmail.htm

I haven't really try before making sendmail working on Internet honestly, but if u really have no way out, i try my best to tell u the way around sendmail's macro configurations.

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
configuring sendmail
« Reply #12 on: February 22, 2004, 06:16:17 PM »
For static DNS configuration go here:

http://www.linuxhomenetworking.com/linux-hn/dns-static.htm

For dynamic DNS go here:
http://www.linuxhomenetworking.com/linux-hn/dns-dynamic.htm

Do u know how to differentiate Static and Dynamic DNS?

Offline murali

  • Linux Noob !
  • *
  • Posts: 7
configuring sendmail
« Reply #13 on: February 23, 2004, 10:03:31 AM »
hi,
 i configured dns correctly now,when i gave nslookup and client machine name its giving ip adress and all,,then i configured sendmail as u suggested but when i tried to connect from client machine to server its giving error message like socket error0x800.....some thing like that. i think i made mistake some where. so please rectify me.
thanks,
regards,
murali.




ote="dragoncity99"]For static DNS configuration go here:

http://www.linuxhomenetworking.com/linux-hn/dns-static.htm

For dynamic DNS go here:
http://www.linuxhomenetworking.com/linux-hn/dns-dynamic.htm

Do u know how to differentiate Static and Dynamic DNS?[/quote]

Offline dragoncity99

  • LST CareTaker
  • Experienced
  • *****
  • Posts: 551
configuring sendmail
« Reply #14 on: February 23, 2004, 04:53:49 PM »
In this error are u able to retrieve mail?
If u can't then most probably the POP3 daemon is not running.

If this error happens when u are able to retrieve mail but unable to sendmail the most likely it's the SMTP server having problem. So, u have to double check your sendmail configuration file (sendmail.mc).

Since u have make ur DNS server working, i suggest u double check back ur sendmail.mc file.

I hope this URL helps u :

http://www.linuxhomenetworking.com/linux-hn/sendmail.htm