B
bartoszk
Guest
Hi,
I'm having some problems with sendmail in Linux. The thing is when I type the following command to send an e-mail:
it looks like it executed but I don't receive the mail. The file test.txt looks like that:
.
Logs show something like that:
In the /etc/hosts there are following lines:
The sendmail.mc file is:
How can I fix that problem?
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 [email protected]< test.txt
it looks like it executed but I don't receive the mail. The file test.txt looks like that:
Code:
To: [email protected]
Subject: Tests
From: [email protected]
TestTestTestTestTest
Logs show something like that:
Code:
$1.119], dsn=4.1.8, stat=Deferred: 450 4.1.8 <[email protected]>: 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?