LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-07-2003, 02:05 AM   #1
visuelz
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Rep: Reputation: 0
webmin and sendmail


i am not sure how to configure it correctly. Every i try to do mail.visualx.net. it tells me cannot find host. I know i set everything correct and stuff like that. I followed all the instructiosn from the webmin book but it still doesnt work. can someone walk me thru this? Thanks.
 
Old 07-07-2003, 02:05 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
What can't you configure? Webmin or sendmail?
 
Old 07-07-2003, 03:27 PM   #3
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
I'm assuming you can't get sendmail to configure using Webmin. If it can't find a host, the problem is likely not with sendmail or Webmin. Do you have the correct DNS records set up for the host you are attempting to use? Try

ping mail.visualx.net

If you get any errors there, check the configuration on your DNS server. If not...hmmm...
 
Old 07-09-2003, 04:36 PM   #4
visuelz
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
ok i could get ping mail.visualx.net. All i cannot do now is receive mail and send mail. I tried using AOL to send to my email but it doesnt work. Can someone please explain to me the procedures to making this work because I followed all the explainations i could find. Thanks a lot.
 
Old 07-09-2003, 04:53 PM   #5
Rumblefish
Member
 
Registered: Jun 2003
Location: Delaware
Distribution: Redhat 7.0, 7.2, 8.0, 9.0, FreeBSD 4.6.2
Posts: 51

Rep: Reputation: 15
What about an MX record in your DNS? Having the address (A) record is vital, but the MX record still must exist for it to be recognized as a mail server.
 
Old 07-11-2003, 12:02 AM   #6
visuelz
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
i added an address and a mx record. i could connect to the server using outlook but i dont receive mail. i also cannot send mail.
 
Old 07-11-2003, 02:01 PM   #7
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Can you telnet to your smtp server from your client system?
telnet ip.of.mail.server 25
 
Old 07-11-2003, 04:19 PM   #8
visuelz
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
[root@sls-ce4p12 root]# telnet 66.36.240.89 25
Trying 66.36.240.89...
telnet: connect to address 66.36.240.89: Connection refused
 
Old 07-11-2003, 04:33 PM   #9
jchristman
Member
 
Registered: Mar 2003
Distribution: Fedora Core 3
Posts: 125

Rep: Reputation: 15
Is your sendmail even running. if you do a ps aux
 
Old 07-11-2003, 07:51 PM   #10
visuelz
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
root 20817 0.0 0.3 4540 1768 ? S 16:19 0:00 sendmail: accepti
 
Old 07-11-2003, 10:20 PM   #11
dorkowitz
LQ Newbie
 
Registered: Jul 2003
Distribution: rh 7.3
Posts: 15

Rep: Reputation: 0
run /sbin/iptables -L

1 - if you have a list of stuff there, you are blocking access to this port. if it is blocked by your firewall, you will not be able to receive mail.

2 - <a href="http://www.nmia.com/%7Eglenn/protech/sendmail.htm">sendmail help</a>
this is the easiest to follow to setup sendmail. forget webmin, until you are a real sysadmin. its for Redhat, but should be pertenant for any distro...

good luck
 
Old 07-12-2003, 05:40 AM   #12
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
Quote:
Originally posted by visuelz
[root@sls-ce4p12 root]# telnet 66.36.240.89 25
Trying 66.36.240.89...
telnet: connect to address 66.36.240.89: Connection refused
In addition to checking your firwall (iptables) check if the sendmail process is only listening on the loopback:
netstat -nlp

If so you will need to "dnl" the line in sendmail.cf that tells sendmail only to listen on the loopback. Then rebuild the config and restart sendmail.
 
Old 07-12-2003, 11:35 AM   #13
visuelz
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
i dnled that DAMEON-OPTIONS line and rebuilt the config by using

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

now i get:

Starting sendmail: 554 5.0.0 /etc/sendmail.cf: line 64: unknown configuration line "visualx.net"
[FAILED]
 
Old 07-12-2003, 11:51 AM   #14
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 66
It sounds like you have made another change to that file b accident (inserted a newline or something)
 
Old 07-12-2003, 12:06 PM   #15
visuelz
LQ Newbie
 
Registered: Jul 2003
Posts: 10

Original Poster
Rep: Reputation: 0
divert(-1)
dnl This is the sendmail macro config file. If you make changes to this file,
dnl you need the sendmail-cf rpm installed and then have to generate a
dnl new /etc/sendmail.cf by running the following command:
dnl
dnl m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')
VERSIONID(`linux setup for Red Hat Linux')dnl
OSTYPE(`linux')
dnl Uncomment and edit the following line if your mail needs to be sent out
dnl through an external mail server:
dnl define(`SMART_HOST',`smtp.your.provider')
define(`confDEF_USER_ID',``8:12'')dnl
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confAUTO_REBUILD')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
define(`ALIAS_FILE', `/etc/aliases')dnl
dnl define(`STATUS_FILE', `/etc/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
dnl TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confTO_QUEUEWARN', `4h')dnl
dnl define(`confTO_QUEUERETURN', `5d')dnl
dnl define(`confQUEUE_LA', `12')dnl
dnl define(`confREFUSE_LA', `18')dnl
dnl FEATURE(delay_checks)dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
dnl The '-t' option will retry delivery if e.g. the user runs over his quota.
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
dnl This changes sendmail to only listen on the loopback device 127.0.0.1
dnl and not on any other network devices. Comment this out if you want
dnl to accept email over the network.
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
dnl NOTE: binding both IPv4 and IPv6 daemon to the same port requires
dnl a kernel patch
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')
dnl We strongly recommend to comment this one out if you want to protect
dnl yourself from spam. However, the laptop and users on computers that do
dnl not have 24x7 DNS do need this.
FEATURE(`accept_unresolvable_domains')dnl
dnl FEATURE(`relay_based_on_MX')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl
Cwlocalhost.localdomain

here's my sendmail.mc. Hoping this would help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
configure SENDMAIL with webmin juanb Linux - Software 1 09-10-2009 02:50 AM
sendmail configuration using Webmin ! nuwanguy Linux - Newbie 0 09-08-2004 10:08 AM
Sendmail and Webmin Tigger Linux - Newbie 2 05-28-2003 12:40 PM
Webmin/Sendmail/Linux7.3 Steinbacher Linux - General 2 10-11-2002 06:00 AM
Webmin / sendmail?!? pk21 Linux - General 0 08-20-2002 09:29 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration