Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sendmail
Message
General information
Forum:
Linux
Category:
Other
Title:
Miscellaneous
Thread ID:
00635357
Message ID:
00635862
Views:
23
Hi,

SMPT is the part of sendmail that send mail out to the target email address from the users outlook client. From the message your getting I would guess that you do not have the sendmail SMTP functionality built into your sendmail.cf program. Take a look at Red Hat Sendmail HOWTO 4.3.3 "The outbound SMTP host (out.isp.net)". Port 25 is the customary port used by any mail server to send mail out into the internet via SMPT. Here is a list of some things you can check.

1) If your linux box is part of your local network, you should be able to connect to it with a local address for POP3 or SMTP. If the pop3 is working (e.g. you can receive email from the linux box) and your SMTP is on the same box, then the address your using for incoming messages should also work for outgoing mail. An example of a local network address to the linux mail server might be as simple a the name of your linux box like linux_srv1 or the linux local IP address like 111.12.24.105. You should be able to ping your linux box by typing something like the following in a terminal window or from your command prompt:

ping 111.12.24.105

If the linux box responds then the above should work.

2) Linux 7.2 come configured with a firewall set to maximun security. Log on to the linux box as super user (su). open a terminal window and type setup, and then select firewall from the popup menu. It will be set to maximun security. Select custom and entry these three port 25 80 110. Close setup and these changes will take immediate effect with no need to reboot. These ports are needed by the mail server and the web server. If there is a router that stands between the local network and the wan/internet as a firewall, make sure it also allows forwarding to the linux box for ports 25, 80, and 110.

3) Since you can receive email from the linux box, I assume you have the /etc/aliases file properly configured as per page 2 of 9 in the Red Hat Sendmail HOWTO. This is necessary to allow mail to be relay to and from computers in the local network.

4 Below is my nuconfig.mc source code. You might compare it to yours to see if you have the basic commands needed by sendmail.

*****************************************************

#
divert(-1)
include(`/usr/share/sendmail-cf/m4/cf.m4')
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')
define(`ALIAS_FILE',`/etc/aliases')dnl
define(`confPRIVACY_FLAGS', `authwarnings,needmailhelo,noexpn,novrfy')dnl
define(`confTO_QUEUERETURN', `4d')dnl
define(`confTO_QUEUEWARN', `1h')dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
undefine(`UUCP_RELAY')dnl
undefine(~BITNET_RELAY')dnl
FEATURE(redirect)dnl
FEATURE(`always_add_domain')dnl
dnl FEATURE(`genericstable', `hash -o /etc/mail/genericstable')dnl
FEATURE(`use_cw_file')dnl
FEATURE(`local_procmail')dnl
FEATURE(`nouucp', `reject')dnl
FEATURE(`mailertable', `hash -o /etc/mail/mailertable')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`access_db', `hash -o /etc/mail/access')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(dnsbl,`rbl.maps.vix.com',`Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/rb;/')dnl
FEATURE(dnsbl,`dul.maps.vix.com',`Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/dul/')dnl
FEATURE(dnsbl,`relays.mail-abuse.org',` Mail from $&{client_addr} rejected; see http://www.mail-abuse.org/rss/')dnl
FEATURE(`accept_unresolvable_domains')dnl
FEATURE(`relay_based_on_MX')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

**************************************************************
Be careful of any path statement in the above code as there were some changes between version 7.1 and version 7.2 of Red Hat Linux. I believe all the file name are still the same.

I create the sendmail.cf file from the above source using m4 as follows:

*****************************************
cd /usr/lib/sendmail-cf/cf/
cp /etc/sendmail.cf /etc/sendmail.cf.bak
m4 nuconfig.mc > /etc/sendmail.cf
/etc/rc.d/init.d/sendmail restart
*****************************************

The above command will allow you to make a sendmail program and restart the new configuration. Any problems will be displayed by m4 and should be corrected. It is not necessary to reboot the linux box after restarting a new configuration.


5) In a command window enter setup, then select System services and make sure the following services are select to be started when the linux box is started:


httpd
imap
imaps
ipchains
ipop3
iptable
netfs
network
nfs
pop3s
portmap
pppoe
sendmail

I'm not sure all of the services above are relevant to sendmail, but I have them enabled on my system. If you have to enable any of these service, then reboot the linux box so they will be started.

6) Make sure the outlook client has a username and password on the linux box as follows

I will use leland as an example user name. Replace this with names of your users.


# adduser leland
# passwd leland


Then enter the new password. You should then be able to connect to the mail locally and pick up and send mail. The email address for the above example might look something like leland@linux_srv1 You cann't use an IP number in the email address, but you can use an IP number for the outgoing and incoming mail server. Once you have everything working locally, you can change addresses so they work universally throughout the internet. You have to have a static IP address for this and have a registerred domain name that resolves to the static IP address.

Finally, based on the error message your getting my guess is that the SMTP functionality is not currently built into the linux box. Once you are able to get SMTP working, try sending mail to and from user within the local network.
Leland F. Jackson, CPA
Software - Master (TM)
smvfp@mail.smvfp.com
Software Master TM
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform