LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 11-30-2010, 02:42 AM   #1
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Rep: Reputation: 15
Facing Problem While sending Mail using sendmail


I am facing a problem while configuring a sendmail AS MY MTA


My problem is when is try to send mail from root to local user account(Any user existing in my local machine) , i m getting a unknown user error but normal users can successfully send a mail to root but root account does not


I can successfully compile a sendmail.mc without any error and sendmail deamons start successfully



When I Try to send mail from root account to local user Account , i got a Returned mail:see transcript for detail (which Has A following Detai )


Date: Tue, 30 Nov 2010 13:07:21 +0530
From: Mail Delivery Subsystem <MAILER-DAEMON@ducat.com>
To: <root@server.ducat.com>
Subject: Returned mail: see transcript for details
Auto-Submitted: auto-generated (failure)

[-- Attachment #1 --]
[-- Type: text/plain, Encoding: 7bit, Size: 0.3K --]

The original message was received at Tue, 30 Nov 2010 13:07:21 +0530
from localhost.localdomain [127.0.0.1]

----- The following addresses had permanent fatal errors -----
<Ashish@ducat.com>

----- Transcript of session follows -----
550 5.1.2 <Ashish@ducat.com>... Host unknown (Name server: ducat.com: no data known)

[-- Attachment #2 --]
[-- Type: message/delivery-status, Encoding: 7bit, Size: 0.3K --]

Reporting-MTA: dns; server.ducat.com
Received-From-MTA: DNS; localhost.localdomain
Arrival-Date: Tue, 30 Nov 2010 13:07:21 +0530

Final-Recipient: RFC822; Ashish@ducat.com
Action: failed
Status: 5.1.2
Remote-MTA: DNS; ducat.com
Last-Attempt-Date: Tue, 30 Nov 2010 13:07:21 +0530

[-- Attachment #3 --]
[-- Type: message/rfc822, Encoding: 7bit, Size: 0.6K --]

Date: Tue, 30 Nov 2010 13:07:21 +0530
From: root <root@server.ducat.com>
To: Ashish@ducat.com
Subject: hi
User-Agent: Mutt/1.4.2.2i
 
Old 11-30-2010, 02:46 AM   #2
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
This is My Sendmail.mc file


divert(-1)dnl
dnl #
dnl # This is the sendmail macro config file for m4. If you make changes to
dnl # /etc/mail/sendmail.mc, you will need to regenerate the
dnl # /etc/mail/sendmail.cf file by confirming that the sendmail-cf package is
dnl # installed and then performing a
dnl #
dnl # make -C /etc/mail
dnl #
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for linux')dnl
OSTYPE(`linux')dnl
dnl #
dnl # Do not advertize sendmail version.
dnl #
dnl define(`confSMTP_LOGIN_MSG', `$j Sendmail; $b')dnl
dnl #
dnl # default logging level is 9, you might want to set it higher to
dnl # debug the configuration
dnl #
dnl define(`confLOG_LEVEL', `9')dnl
dnl #
dnl # Uncomment and edit the following line if your outgoing mail needs to
dnl # be sent out through an external mail server:
dnl #
dnl define(`SMART_HOST', `smtp.your.provider')dnl
dnl #
define(`confDEF_USER_ID', ``8:12'')dnl
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/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 #
dnl # The following allows relaying if the user authenticates, and disallows
dnl # plaintext authentication (PLAIN/LOGIN) on non-TLS links
dnl #
dnl define(`confAUTH_OPTIONS', `A p')dnl
dnl #
dnl # PLAIN is the preferred plaintext authentication method and used by
dnl # Mozilla Mail and Evolution, though Outlook Express and other MUAs do
dnl # use LOGIN. Other mechanisms should be used if the connection is not
dnl # guaranteed secure.
dnl # Please remember that saslauthd needs to be running for AUTH.
dnl #
dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl #
dnl # Rudimentary information on creating certificates for sendmail TLS:
dnl # cd /usr/share/ssl/certs; make sendmail.pem
dnl # Complete usage:
dnl # make -C /usr/share/ssl/certs usage
dnl #
dnl define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
dnl define(`confCACERT', `/etc/pki/tls/certs/ca-bundle.crt')dnl
dnl define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
dnl define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
dnl #
dnl # This allows sendmail to use a keyfile that is shared with OpenLDAP's
dnl # slapd, which requires the file to be readble by group ldap
dnl #
dnl define(`confDONT_BLAME_SENDMAIL', `groupreadablekeyfile')dnl
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
define(`confTO_IDENT', `0')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 #
dnl # The following limits the number of processes sendmail can fork to accept
dnl # incoming messages or process its message queues to 20.) sendmail refuses
dnl # to accept connections once it has reached its quota of child processes.
dnl #
dnl define(`confMAX_DAEMON_CHILDREN', `20')dnl
dnl #
dnl # Limits the number of new connections per second. This caps the overhead
dnl # incurred due to forking new sendmail processes. May be useful against
dnl # DoS attacks or barrages of spam. (As mentioned below, a per-IP address
dnl # limit would be useful but is not available as an option at this writing.)
dnl #
dnl define(`confCONNECTION_RATE_THROTTLE', `3')dnl
dnl #
dnl # The -t option will retry delivery if e.g. the user runs over his quota.
dnl #
FEATURE(local_procmail, `', `procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db', `hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
dnl #
dnl # For using Cyrus-IMAPd as POP3/IMAP server through LMTP delivery uncomment
dnl # the following 2 definitions and activate below in the MAILER section the
dnl # cyrusv2 mailer.
dnl #
dnl define(`confLOCAL_MAILER', `cyrusv2')dnl
dnl define(`CYRUSV2_MAILER_ARGS', `FILE /var/lib/imap/socket/lmtp')dnl
dnl #
dnl # The following causes sendmail to only listen on the IPv4 loopback address
dnl # 127.0.0.1 and not on any other network devices. Remove the loopback
dnl # address restriction to accept email from the internet or intranet.
dnl #
dnl DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 587 for
dnl # mail from MUAs that authenticate. Roaming users who can't reach their
dnl # preferred sendmail daemon due to port 25 being blocked or redirected find
dnl # this useful.
dnl #
dnl DAEMON_OPTIONS(`Port=submission, Name=MSA, M=Ea')dnl
dnl #
dnl # The following causes sendmail to additionally listen to port 465, but
dnl # starting immediately in TLS mode upon connecting. Port 25 or 587 followed
dnl # by STARTTLS is preferred, but roaming clients using Outlook Express can't
dnl # do STARTTLS on ports other than 25. Mozilla Mail can ONLY use STARTTLS
dnl # and doesn't support the deprecated smtps; Evolution <1.1.1 uses smtps
dnl # when SSL is enabled-- STARTTLS support is available in version 1.1.1.
dnl #
dnl # For this to work your OpenSSL certificates must be configured.
dnl #
dnl DAEMON_OPTIONS(`Port=smtps, Name=TLSMTA, M=s')dnl
dnl #
dnl # The following causes sendmail to additionally listen on the IPv6 loopback
dnl # device. Remove the loopback address restriction listen to the network.
dnl #
dnl DAEMON_OPTIONS(`port=smtp,Addr=::1, Name=MTA-v6, Family=inet6')dnl
dnl #
dnl # enable both ipv6 and ipv4 in sendmail:
dnl #
dnl DAEMON_OPTIONS(`Name=MTA-v4, Family=inet, Name=MTA-v6, Family=inet6')
dnl #
dnl # We strongly recommend not accepting unresolvable domains if you want to
dnl # protect yourself from spam. However, the laptop and users on computers
dnl # that do not have 24x7 DNS do need this.
dnl #
FEATURE(`accept_unresolvable_domains')dnl
dnl #
dnl FEATURE(`relay_based_on_MX')dnl
dnl #
dnl # Also accept email sent to "localhost.localdomain" as local email.
dnl #
LOCAL_DOMAIN(`localhost.localdomain')dnl
dnl #
dnl # The following example makes mail from this host and any additional
dnl # specified domains appear to be sent from mydomain.com
dnl #
dnl MASQUERADE_AS(`mydomain.com')dnl
dnl #
dnl # masquerade not just the headers, but the envelope as well
dnl #
dnl FEATURE(masquerade_envelope)dnl
dnl #
dnl # masquerade not just @mydomainalias.com, but @*.mydomainalias.com as well
dnl #
dnl FEATURE(masquerade_entire_domain)dnl
dnl #
dnl MASQUERADE_DOMAIN(localhost)dnl
dnl MASQUERADE_DOMAIN(localhost.localdomain)dnl
dnl MASQUERADE_DOMAIN(mydomainalias.com)dnl
dnl MASQUERADE_DOMAIN(mydomain.lan)dnl

FEATURE(always_add_domain)dnl
FEATURE(`masquerade_entire_domain')dnl
FEATURE(`masquerade_envelope')dnl
FEATURE(`allmasquerade')dnl
MASQUERADE_AS(`ducat.com')dnl
MASQUERADE_DOMAIN(`ducat.com.')dnl
MASQUERADE_DOMAIN(localhost)dnl
MASQUERADE_DOMAIN(localhost.localdomain)dnl

MAILER(smtp)dnl
MAILER(procmail)dnl
dnl MAILER(cyrusv2)dnl
 
Old 11-30-2010, 02:47 AM   #3
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
And this Is My Zone Database File




$ORIGIN ducat.com.
$TTL 86400

@ IN SOA server.ducat.com. admin.ducat.com. (

2010111906 ;serial
3H ;refresh
20M ;retry
1W ;expire
1D) ;minimum



IN NS server.ducat.com.

server IN A 192.168.10.1
station1 IN A 192.168.10.2
station2 IN A 192.168.10.3
station3 IN A 192.168.10.4
station4 IN A 192.168.10.5
station5 IN A 192.168.10.6
station6 IN A 192.168.10.7
station7 IN A 192.168.10.8
station8 IN A 192.168.10.9
station9 IN A 192.168.10.10
station10 IN A 192.168.10.11



IN MX 10 mail.ducat.com.

mail IN CNAME server
ftp IN CNAME server
www IN CNAME server

 
Old 11-30-2010, 02:48 AM   #4
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
Guys Plz Help Me
 
Old 11-30-2010, 03:29 AM   #5
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

What do the following commands give:
Code:
sendmail -bv Ashish@ducat.com
dig mx ducat.com
 
Old 11-30-2010, 08:37 AM   #6
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
sendmail -bv Ashish@ducat.com
Ashish@ducat.com... User unknown



But After this

sendmail -bv root@ducat.com or root@server.ducat.com
root@server.ducat.com... deliverable: mailer local, user root


only the root Account is listen by sendmail not any other user


dig mx ducat.com
; <<>> DiG 9.3.4-P1 <<>> mx ducat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 42610
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;ducat.com. IN MX

;; AUTHORITY SECTION:
ducat.com. 86400 IN SOA server.ducat.com. admin.ducat.com. 2010111906 10800 1200 604800 86400

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Tue Nov 30 20:04:28 2010
;; MSG SIZE rcvd: 76
 
Old 11-30-2010, 04:07 PM   #7
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Hi,

Your dns does not know the MX record for your domain because of some "errors" you have. Change the zone file to the following:
Code:
$ORIGIN ducat.com.
$TTL 86400

@ IN SOA server.ducat.com. admin.ducat.com. (

2010111907 ;<---- increase the serial
3H ;refresh
20M ;retry
1W ;expire
1D) ;minimum

            IN NS server.ducat.com.
            IN MX 10 mail.ducat.com.

server IN A 192.168.10.1
station1 IN A 192.168.10.2
station2 IN A 192.168.10.3
station3 IN A 192.168.10.4
station4 IN A 192.168.10.5
station5 IN A 192.168.10.6
station6 IN A 192.168.10.7
station7 IN A 192.168.10.8
station8 IN A 192.168.10.9
station9 IN A 192.168.10.10
station10 IN A 192.168.10.11
mail IN A 192.168.10.1
ftp IN CNAME server
www IN CNAME server
The MX RR should follow NS and it's better not to use a CNAME for it. Use an A RR pointing to the IP of the CNAME.
Also you need at least a blank space at the beginning of the NS and MX lines.
 
Old 12-01-2010, 03:33 AM   #8
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
First of all i would like to thanks u bethory for helping me

i configured exactly as u said

This is the output of my

sendmail -bv Ashish@server.ducat.com
Ashish@server.ducat.com... User unknown


This is the output of my

sendmail -bv root@server.ducat.com
root@server.ducat.com... deliverable: mailer local, user root


This is the output of my
sendmail -bv root@station9.ducat.com
root@station9.ducat.com... deliverable: mailer esmtp, host station9.ducat.com., user root@station9.ducat.com

apart from this i cant able to send mail to station9 , but station9 can able to send to me



This is the output of my

dig mx ducat.com


; <<>> DiG 9.3.4-P1 <<>> mx ducat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47774
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;ducat.com. IN MX

;; ANSWER SECTION:
ducat.com. 86400 IN MX 10 mail.ducat.com.

;; AUTHORITY SECTION:
ducat.com. 86400 IN NS server.ducat.com.

;; ADDITIONAL SECTION:
mail.ducat.com. 86400 IN A 192.168.10.1
server.ducat.com. 86400 IN A 192.168.10.1

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Dec 1 14:26:06 2010
;; MSG SIZE rcvd: 101

; <<>> DiG 9.3.4-P1 <<>> mx ducat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47774
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;ducat.com. IN MX

;; ANSWER SECTION:
ducat.com. 86400 IN MX 10 mail.ducat.com.

;; AUTHORITY SECTION:
ducat.com. 86400 IN NS server.ducat.com.

;; ADDITIONAL SECTION:
mail.ducat.com. 86400 IN A 192.168.10.1
server.ducat.com. 86400 IN A 192.168.10.1

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Dec 1 14:26:06 2010
;; MSG SIZE rcvd: 101


; <<>> DiG 9.3.4-P1 <<>> mx ducat.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47774
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 2

;; QUESTION SECTION:
;ducat.com. IN MX

;; ANSWER SECTION:
ducat.com. 86400 IN MX 10 mail.ducat.com.

;; AUTHORITY SECTION:
ducat.com. 86400 IN NS server.ducat.com.

;; ADDITIONAL SECTION:
mail.ducat.com. 86400 IN A 192.168.10.1
server.ducat.com. 86400 IN A 192.168.10.1

;; Query time: 1 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Dec 1 14:26:06 2010
;; MSG SIZE rcvd: 101



This is the output of my ZONE FILE

$ORIGIN ducat.com.
$TTL 86400

@ IN SOA server.ducat.com. admin.ducat.com. (

2010111909 ;serial
3H ;refresh
20M ;retry
1W ;expire
1D) ;minimum



IN NS server.ducat.com.
IN MX 10 mail.ducat.com.

server IN A 192.168.10.1
mail IN A 192.168.10.1
station1 IN A 192.168.10.2
station2 IN A 192.168.10.3
station3 IN A 192.168.10.4
station4 IN A 192.168.10.5
station5 IN A 192.168.10.6
station6 IN A 192.168.10.7
station7 IN A 192.168.10.8
station8 IN A 192.168.10.9
station9 IN A 192.168.10.10
station10 IN A 192.168.10.11


ftp IN CNAME server
www IN CNAME server


This is the output of my maillog file When i try to send mail to my local user(Ashish)


Dec 1 14:31:14 server sendmail[7180]: oB191EMs007180: to=Ashish@server.ducat.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30286, relay=[127.0.0.1] [127.0.0.1], dsn=5.1.1, stat=User unknown



This is the output of my maillog when i try to send a mail to root@station9.ducat.com
Dec 1 15:00:21 server sendmail[9109]: oB19ULdp009107: to=<root@station9.ducat.com>, ctladdr=<root@server.ducat.com> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120441, relay=station9.ducat.com. [192.168.10.10], dsn=4.0.0, stat=Deferred: Connection refused by station9.ducat.com.

Every one can able to send a mail to my server , whether it is a local user to any dns client but i m not , i dont know how to fix it .


Thanks Again.....
Ashish Sood
 
Old 12-01-2010, 04:24 AM   #9
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
First things first:
1. Your dns server works as expected as it can find the MX server for your domain.
2.
Quote:
Dec 1 15:00:21 server sendmail[9109]: oB19ULdp009107: to=<root@station9.ducat.com>, ctladdr=<root@server.ducat.com> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=esmtp, pri=120441, relay=station9.ducat.com. [192.168.10.10], dsn=4.0.0, stat=Deferred: Connection refused by station9.ducat.com.
You cannot send an email to user@station9.ducat.com as there is no mailserver running at station9.ducat.com.
3.
Quote:
sendmail -bv Ashish@server.ducat.com
Ashish@server.ducat.com... User unknown
This is puzzling me. Are you sure the user exists? Can you try the sendmail -bv command with some other system user (like nobody@server.ducat.com)?
Can you run adduser to create another user and see if mail works for him?
 
Old 12-01-2010, 04:59 AM   #10
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
YES i m sure about the user Ashish is exist in my System , i can log in from this user and also i can send the mail from Ashish user to root@server.ducat.com, same for station9.ducat.com system, i can send mail from root@station9.ducat.com to root@server.ducat.com but not vice versa, its also puzzle me alot bathory
 
Old 12-01-2010, 05:19 AM   #11
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
i can send mail from root@station9.ducat.com to root@server.ducat.com but not vice versa
There is no mail server running on station9.ducat.com (192.168.10.10) as you get a "connection refused" error. Or it's not reachable because of a firewall.

Did you try the sendmail -bv command for some other user that exists in /etc/passwd?
 
Old 12-02-2010, 12:28 AM   #12
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
Again Humble Thanks Bethory

Yes u r right the problem is lies only with Ashish user
i also have another user name sample in which i dont have problem we both can exchange the mails on the same system, i dont know why this problem only lies with user Ashish



sendmail -bv sample@server.ducat.com
sample@server.ducat.com... deliverable: mailer local, user sample



Another thing is that the client system which is connected to my server system via LAN can send me a mail , but i cant send a mail to any one , i want to know is there is any configuration which i need to configure on my client system
 
Old 12-02-2010, 12:44 AM   #13
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
i dont know why this problem only lies with user Ashish
Take a look at /etc/mail/virtusertable and /etc/mail/aliases to see if you find anything

Quote:
Another thing is that the client system which is connected to my server system via LAN can send me a mail , but i cant send a mail to any one , i want to know is there is any configuration which i need to configure on my client system
If you're trying to send mail to users on other hosts, you need a mailserver running on those hosts as I've already told you.
Else post sendmail logs and maybe the DSN you get but after the failure.

Regards
 
Old 12-03-2010, 12:26 AM   #14
Ashish Sood
Member
 
Registered: Feb 2009
Location: Gwalior
Distribution: Fedora 22, RHEL 6,7
Posts: 180

Original Poster
Rep: Reputation: 15
i didnt find anything regarding with anything /etc/aliases /etc/mail/virtusertable & /etc/mail/aliases, user ashish cant send mail but all user can able to send mail. but problem still with sendmail mail

one more thing bethory i m using thunderbird as my mail client

when i try to login in thunderbird by supplying My name(Your Name), E-mail ID, root (user) , after the it automatically detect my sendmail server setting , and when i supply my root password , it deny me and giving me a message invalid user id and password. but on the other hand this issue is not with other user who existing into my system .

I m using thunderbird 3.1.6 version
 
Old 12-03-2010, 02:17 AM   #15
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,163
Blog Entries: 1

Rep: Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032Reputation: 2032
Quote:
i didnt find anything regarding with anything /etc/aliases /etc/mail/virtusertable & /etc/mail/aliases, user ashish cant send mail but all user can able to send mail. but problem still with sendmail mail
You said that user cannot get mail but can send normally, so I guess you made a mistake.
Anyway, I don't know how did you create the user ashish, but you can try to delete it and re-create it.
Or you can add
Code:
Ashish@server.ducat.com ashish
in /etc/mail/virtusertable, run
Code:
makemap hash /etc/mail/virtusertable < /etc/mail/virtusertable
and see if he can accept mail

Quote:
when i try to login in thunderbird by supplying My name(Your Name), E-mail ID, root (user) , after the it automatically detect my sendmail server setting , and when i supply my root password , it deny me and giving me a message invalid user id and password. but on the other hand this issue is not with other user who existing into my system .
You cannot use pop to get root's mail remotely. It is disabled by default for security reasons

Regards
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail (mailserver) -- sending mail with the mail command -- doesn't work :-( carolinevdh Linux - Server 1 08-13-2009 09:43 PM
Sendmail facing email sending problem r.bhange Linux - Newbie 8 03-13-2009 06:05 AM
sendmail not...sending mail. phantom_cyph Linux - Software 1 12-16-2008 08:55 PM
Facing problem in Sendmail 3.13 dhanju Linux - Server 1 03-27-2008 09:10 AM
Sendmail not sending mail tarheel92x Linux - Server 8 10-27-2006 04:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:22 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