Sendmail issues


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Sendmail issues
# 1  
Old 11-20-2014
Sendmail issues

Hi,

I'm having some problems with sendmail in Linux. The thing is when I type the following command to send an e-mail:

Code:
sendmail bartoszk@companydomain.pl< test.txt

it looks like it executed but I don't receive the mail. The file test.txt looks like that:

Code:
To: serwis@ubuntu-server.linux.companydomain.pl
Subject: Tests
From: serwis@linux.companydomain.pl

TestTestTestTestTest

.

Logs show something like that:
Code:
$1.119], dsn=4.1.8, stat=Deferred: 450 4.1.8 <root@ubuntu-server.linux.companydomain.pl>: Sender address rejected: Domain not found

In the /etc/hosts there are following lines:
Code:
127.0.0.1       localhost       localhost.linux.companydomain.pl
127.0.1.1       rtnagios        rtnagios.companydomain.pl
127.0.1.1       ubuntu-server   ubuntu-server.linux.companydomain.pl
192.168.1.119   linux           linux.companydomain.pl
127.0.0.1       companydomain companydomain.pl

# The following lines are desirable for IPv6 capable hosts
#::1     ip6-localhost ip6-loopback
#fe00::0 ip6-localnet
#ff00::0 ip6-mcastprefix
#ff02::1 ip6-allnodes
#ff02::2 ip6-allrouters

The sendmail.mc file is:
Code:
DAEMON_OPTIONS(`Family=inet,  Name=MTA-v4, Port=smtp, Addr=127.0.0.1')dnl
dnl DAEMON_OPTIONS(`Family=inet6, Name=MSP-v6, Port=submission, M=Ea, Addr=::1')dnl
DAEMON_OPTIONS(`Family=inet,  Name=MSP-v4, Port=submission, M=Ea, Addr=127.0.0.1')dnl
dnl #
dnl # Be somewhat anal in what we allow
define(`confPRIVACY_FLAGS',dnl
`needmailhelo,needexpnhelo,needvrfyhelo,restrictqrun,restrictexpand,nobodyreturn,authwarnings')dnl
dnl #
dnl # Define connection throttling and window length
define(`confCONNECTION_RATE_THROTTLE', `15')dnl
define(`confCONNECTION_RATE_WINDOW_SIZE',`10m')dnl
dnl #
dnl # Features
dnl #
dnl # use /etc/mail/local-host-names
FEATURE(`use_cw_file')dnl
dnl #
dnl # The access db is the basis for most of sendmail's checking
FEATURE(`access_db', , `skip')dnl
dnl #
dnl # The greet_pause feature stops some automail bots - but check the
dnl # provided access db for details on excluding localhosts...
FEATURE(`greet_pause', `1000')dnl 1 seconds
dnl #
dnl # Delay_checks allows sender<->recipient checking
FEATURE(`delay_checks', `friend', `n')dnl
dnl #
dnl # If we get too many bad recipients, slow things down...
define(`confBAD_RCPT_THROTTLE',`3')dnl
dnl #
dnl # Stop connections that overflow our concurrent and time connection rates
FEATURE(`conncontrol', `nodelay', `terminate')dnl
FEATURE(`ratecontrol', `nodelay', `terminate')dnl
dnl #
dnl # If you're on a dialup link, you should enable this - so sendmail
dnl # will not bring up the link (it will queue mail for later)
dnl define(`confCON_EXPENSIVE',`True')dnl
dnl #
dnl # Dialup/LAN connection overrides
dnl #
include(`/etc/mail/m4/dialup.m4')dnl
include(`/etc/mail/m4/provider.m4')dnl
dnl #
define(`SMART_HOST',`companydomain.pl')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
FEATURE(`authinfo',`hash /etc/mail/auth/client-info')dnl
dnl # Default Mailer setup
MAILER_DEFINITIONS
MAILER(`smtp')dnl
dnl # Masquerading options

How can I fix that problem?
# 2  
Old 11-22-2014
I would assume from the error "Domain not found" that the domain hasn't been properly configured on the server for sendmail to use. I'm not sure what version of Linux you have, but you may need to configure this domain and user in /etc/mail/virtusertable. I found some documentation on this at the link below:

Configure IT Quick: Set up Sendmail to host multiple domains - TechRepublic
# 3  
Old 11-24-2014
Quote:
Originally Posted by Azrael
I would assume from the error "Domain not found" that the domain hasn't been properly configured on the server for sendmail to use. I'm not sure what version of Linux you have, but you may need to configure this domain and user in /etc/mail/virtusertable. I found some documentation on this at the link below:
Could you explain how to exactly configure the domain?
And what should be the extension of the virtusertable file I'm about to create?
# 4  
Old 11-25-2014
Also, is the recipients mailserver doing a reverse DNS lookup before accepting mail form your server?
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Clarifying sendmail configuration - sendmail-client offline

Hi all, I have read about sendmail running as 2 separate process. 1 as a MSP, and the other as the real daemon or MTA. In my current configuration, the sendmail-client is disabled. Both submit.cf and sendmail.cf are left as default untouch I do not specified any mailhost... (3 Replies)
Discussion started by: javanoob
3 Replies

2. UNIX for Dummies Questions & Answers

Sendmail with HTML body and attachment code issues

Hi, I was working on getting an HTML file in the mail body along with attaching a "csv" file to the mail. Below are the 2 parts of the code. I need help with the second part where I'm sending the mail. The HTML file as an attachment is perfect without any issues and with proper formatting.... (6 Replies)
Discussion started by: aster007
6 Replies

3. UNIX for Advanced & Expert Users

Sendmail questions, SCO 5.0.6 sendmail 8.11.0

I am running SCO 5.0.6 and using sendmail 8.11.0 and having issues with smtp authentication. When trying to send mail the following message will kick back. (reason: 530 5.7.1 Authentication required) 530 5.7.1 Authentication required Not sure what needs to be tweeked in sendmail.cf but I... (1 Reply)
Discussion started by: ziggy6
1 Replies

4. UNIX for Dummies Questions & Answers

nLocal sendmail issues when hostname not set in official domain name

Hi, I'm having issues with sendmail when I try to send host to host mail. I've had to change the "my official domain name" line to mycompany.com to get the mails through the external spam filter, when a mail was sent with hostname.mycompany.com it was blocked. I had to change the Dj macro... (0 Replies)
Discussion started by: elcounto
0 Replies

5. Emergency UNIX and Linux Support

rm -rf issues

We are using the solaris server and if i am using rm -rf to delete the directories its asking the confirmation for each and every file inside the directory.Is there any way to disable ( should not ask the confirmation) only for a particular session? (12 Replies)
Discussion started by: sureshbabuc
12 Replies

6. Solaris

Sendmail

I have sendmail enabled in my Solaris 10 boxes. It has being flagged as an violation to unix security standard as the port 25 is listening. I want to run the sendmail to run in non-daemon mode so that the queue is processed. Please help. (0 Replies)
Discussion started by: ranasarkar
0 Replies

7. UNIX for Dummies Questions & Answers

Sendmail

Hi... I am using sendmail as MTA. I want to change the email messages sender address from root@server.domain.com to look like someuser@server.domain.com. How can i accomplish this? I don't want to change the domain part of the address,its only the senders name that i want to change. (2 Replies)
Discussion started by: proactiveaditya
2 Replies

8. UNIX for Dummies Questions & Answers

Issues with cronjob : Script using sendmail

Hi All, I am new to unix. I have created a cron job, that sends mail using sendmail utility. Am facing a unique problem while making a cron job for this script. In the script I append a file to my mail using 'cat' command. cat $report >> $mailMsg & this $mailMsg is used as mail... (7 Replies)
Discussion started by: anshulporwal
7 Replies

9. HP-UX

regarding sendmail

Hi, Is it possible to send mail from HP-UX server to internet mail addresses(like gmail or hotmail) thro' sendmail or elm options. If yes, kindly guide the steps and give the syntax. Thanks in Advance!! Sridhar (1 Reply)
Discussion started by: sridharr83
1 Replies

10. Shell Programming and Scripting

SU issues

Hi, I have automated a build process that does the following activities. 1. check out code from cvs to a specific directory 2. build the revision checked out with 'ANT' 3. integrate the compiled code with the QA/UAT or new environment (/apps/QA or /apps/UAT or /apps/new directory) I... (1 Reply)
Discussion started by: yoi2hot4ya
1 Replies
Login or Register to Ask a Question