SENDMAIL is so widely used then why does noone know what the heck is wrong.
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
This is my sendmail.mc just incase someone here can find something wrong
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')
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
define(`STATUS_FILE', `/var/log/sendmail.st')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(`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')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail)dnl
FEATURE(`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.
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.2.3, Name=MTA')
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
Well i figured most of it out. Last problem is sending a mail from outlook. Sending a mail from the server works.
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'rauconsulting@yahoo.com'. Subject 'tesat', Account: 'Adam Rau', Server: 'myhost.mydomain.com', Protocol: SMTP, Server Response: '550 5.7.1 <rauconsulting@yahoo.com>... Relaying denied. IP name lookup failed [10.0.0.2]', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
Originally posted by adamrau Well i figured most of it out. Last problem is sending a mail from outlook. Sending a mail from the server works.
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'rauconsulting@yahoo.com'. Subject 'tesat', Account: 'Adam Rau', Server: 'myhost.mydomain.com', Protocol: SMTP, Server Response: '550 5.7.1 <rauconsulting@yahoo.com>... Relaying denied. IP name lookup failed [10.0.0.2]', Port: 25, Secure(SSL): No, Server Error: 550, Error Number: 0x800CCC79
Silly me.
YES you have to create a relay-domains file in /etc/mail.
In my file I put my hostname.com in the file and also all IP Addresses that can send mail. If you are using outlook/etc on a client using ip address 192.168.1.1, then add 192.168.1.1 to the relay-domains and it will solve this error.
I have some documentation at home on this. I took notes on what is the necessary steps that need to be taken for sendmail to work. If you are still having problems, please let me know and Ill paste my document here. It may help you.
adamrau i got the same problem as you solved.. outlook is rejecting it, so i enabled the ip adresses in access > access.db,
but still it wont work please help me out
FWIW, I use sendmail as a relay for a large number of individual networks at a school system. My sendmail.mc file follows. /etc/mail/access contains "192.168" to allow everyone on my private network to send mail thru it.
divert(-1)
include(`../m4/cf.m4')dnl
VERSIONID(`$Id: my MC file 5.x v2 2000/03/12 Exp $')dnl
OSTYPE(linux)dnl
define(`confMAX_HOP', `40')dnl
define(`confMAX_MESSAGE_SIZE', `5500000')dnl
define(`confPRIVACY_FLAGS', ``goaway'')dnl
define(`confCW_FILE',`/etc/mail/sendmail.cw')dnl
define(`confSMTP_LOGIN_MSG',`$j Sendmail $v/$Z; $b - NO UCE! - Use of these facilities for storage or transmission of unsolicited advertising e-mail (bulk or otherwise) is PROHIBITED!')dnl
FEATURE(`nouucp',`reject')dnl
FEATURE(always_add_domain)dnl
FEATURE(local_procmail,`/usr/bin/procmail')dnl
FEATURE(`use_cw_file')dnl
FEATURE(virtusertable, `hash -o /etc/mail/virtusertable -T<TMPF>')dnl
FEATURE(access_db, `hash -o /etc/mail/access -T<TMPF>')dnl
FEATURE(relay_hosts_only)dnl
FEATURE(dnsbl,`bl.spamcop.net',`"550 Spam blocked by use of list bl.spamcop.net. See http://spamcop.net/w3m?action=checkblock&ip="$&{client_addr}" for more information."')dnl
FEATURE(dnsbl,`sbl.spamhaus.org',`"550 Spam blocked by use of list sbl.spamhaus.org. See http://www.abuse.net/sbl.phtml?IP="$&{client_addr}" for more information."')dnl
FEATURE(`dnsbl', `relays.ordb.org', `"550 Spam blocked by use of list www.ordb.org. See http://www.ordb.org/lookup/?host="$&{client_addr}" information."')dnl
FEATURE(`delay_checks')dnl
MAILER(local)dnl
MAILER(smtp)dnl
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.