LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 10-02-2001, 04:55 PM   #1
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Rep: Reputation: 15
SENDMAIL is so widely used then why does noone know what the heck is wrong.


THis is my error when sending mail.
[root@mail log]# mail -v rauconsulting@yahoo.com
Subject: this is my sub
body
.
Cc:
rauconsulting@yahoo.com... yahoo.com: Name server timeout
rauconsulting@yahoo.com... Transient parse error -- message queued for future delivery
rauconsulting@yahoo.com... queued
[root@mail log]#

also i can only receive mail to myhost.domain.com and not domain.com.
I added domain.name to local-host-names.


Adam
 
Old 10-02-2001, 05:08 PM   #2
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Original Poster
Rep: Reputation: 15
Im also able to login to my server and send a mail to root@localhost.
Just in case that helps
 
Old 10-02-2001, 05:13 PM   #3
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Original Poster
Rep: Reputation: 15
I am unable to send mail to root@127.0.0.1 and root@myhost.mydomain.com

Very wierd

I can send mail to anyuser@localhost.

netstap -natp shows:
tcp 0 0 192.168.2.3:25 0.0.0.0:* LISTEN 971/sendmail: accep



 
Old 10-02-2001, 05:16 PM   #4
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Original Poster
Rep: Reputation: 15
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
 
Old 10-02-2001, 05:35 PM   #5
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Original Poster
Rep: Reputation: 15
[root@mail /etc]# /usr/sbin/sendmail -bt
ADDRESS TEST MODE (ruleset 3 NOT automatically invoked)
Enter <ruleset> <address>
> 3,0 isaac
canonify input: isaac
Canonify2 input: isaac
Canonify2 returns: isaac
canonify returns: isaac
parse input: isaac
Parse0 input: isaac
Parse0 returns: isaac
ParseLocal input: isaac
ParseLocal returns: isaac
Parse1 input: isaac
Parse1 returns: $# local $: isaac
parse returns: $# local $: isaac
> 3,0 rauconsulting@yahoo.com
canonify input: rauconsulting @ yahoo . com
Canonify2 input: rauconsulting < @ yahoo . com >
yahoo.com: Name server timeout
Canonify2 returns: rauconsulting < @ yahoo . com >
canonify returns: rauconsulting < @ yahoo . com >
== Ruleset 3,0 (3) status 75
parse input: rauconsulting < @ yahoo . com >
Parse0 input: rauconsulting < @ yahoo . com >
Parse0 returns: rauconsulting < @ yahoo . com >
ParseLocal input: rauconsulting < @ yahoo . com >
ParseLocal returns: rauconsulting < @ yahoo . com >
Parse1 input: rauconsulting < @ yahoo . com >
Mailertable input: < yahoo . com > rauconsulting < @ yahoo . com >
Mailertable input: yahoo . < com > rauconsulting < @ yahoo . com >
Mailertable returns: rauconsulting < @ yahoo . com >
Mailertable returns: rauconsulting < @ yahoo . com >
MailerToTriple input: < > rauconsulting < @ yahoo . com >
MailerToTriple returns: rauconsulting < @ yahoo . com >
Parse1 returns: $# esmtp $@ yahoo . com $: rauconsulting < @ yahoo . com >
parse returns: $# esmtp $@ yahoo . com $: rauconsulting < @ yahoo . com >
>
 
Old 10-02-2001, 07:46 PM   #6
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Original Poster
Rep: Reputation: 15
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
 
Old 10-04-2001, 06:30 AM   #7
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Original Poster
Rep: Reputation: 15
Thanks but figured it out finally.
 
Old 12-04-2001, 06:39 AM   #8
manlinux
LQ Newbie
 
Registered: Dec 2001
Location: Hyderabad
Distribution: Redhat 7.1
Posts: 4

Rep: Reputation: 0
Quote:
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



NEED A SOLUTION FOR THIS !!!
 
Old 12-04-2001, 07:26 AM   #9
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Original Poster
Rep: Reputation: 15
Hi,
Thanks for wondering, but this is all fixed now. The problem was that i didnt have a relay-domain file. I had to create one.

Thanks for your time. It is much appreciated
Adam
 
Old 12-04-2001, 09:03 AM   #10
manlinux
LQ Newbie
 
Registered: Dec 2001
Location: Hyderabad
Distribution: Redhat 7.1
Posts: 4

Rep: Reputation: 0
Thanks for a prompt reply.

will you please provide me with the full details? Do I need to create a relay-domains file ? If yes how should I specify this in the .cf file?


Thanks once again !!
 
Old 12-04-2001, 09:33 AM   #11
adamrau
Member
 
Registered: Sep 2001
Posts: 42

Original Poster
Rep: Reputation: 15
Oh i thought you were trying to help me.


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.


FYI - I did not have to change any .cf file.

Thanks
Adam
 
Old 08-06-2003, 05:43 PM   #12
Jokke
LQ Newbie
 
Registered: Aug 2003
Posts: 1

Rep: Reputation: 0
Question I could use some help (sendmail)

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
 
Old 09-10-2003, 11:00 PM   #13
Sticky Toejam
LQ Newbie
 
Registered: Sep 2003
Posts: 17

Rep: Reputation: 0
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
 
  


Reply



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
What the heck is wrong with apt? jon_k Linux - Software 4 09-30-2005 11:37 AM
Sendmail - wrong mail sender domain display jika Linux - Newbie 1 05-27-2005 02:29 AM
Which is the widely used and best opensource crawler? coolguy_iiit Linux - Networking 1 01-08-2005 07:56 PM
Wrong 'From' address on mail received from sendmail pioniere Linux - General 2 05-21-2004 03:41 PM
FreeBSD & Linux differ widely in view of my HDD Tinkster *BSD 7 04-05-2003 04:03 AM

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

All times are GMT -5. The time now is 03:09 PM.

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
Open Source Consulting | Domain Registration