LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 05-22-2007, 11:16 PM   #1
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Rep: Reputation: 58
Errors On Sendmail Install


Hey guys,

I tried to install sendmail and got a few erros. Please take a look.

Code:
localhost:~# apt-get install sendmail
Reading package lists... Done
Building dependency tree... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.

Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:

The following packages have unmet dependencies:
  sendmail: Depends: sendmail-bin (= 8.13.8-3) but it is not going to be installed
            Depends: rmail (= 8.13.8-3) but it is not going to be installed
E: Broken packages
localhost:~# apt-get install sendmail sendmail-bin
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
  make rmail sendmail-base sendmail-cf sensible-mda
Suggested packages:
  make-doc-non-dfsg sendmail-doc ca-certificates logcheck sasl2-bin
  libsasl2-modules libsasl2-modules-plain libsasl2-digestmd5-plain
  libsasl2-digestmd5-des cyrus-common
Recommended packages:
  resolvconf
The following packages will be REMOVED:
  exim4 exim4-base exim4-config exim4-daemon-light
The following NEW packages will be installed:
  make rmail sendmail sendmail-base sendmail-bin sendmail-cf sensible-mda
0 upgraded, 7 newly installed, 4 to remove and 11 not upgraded.
Need to get 2476kB of archives.
After unpacking 3052kB of additional disk space will be used.
Do you want to continue [Y/n]? Y
Get:1 http://ftp.debian.org etch/main make 3.81-2 [382kB]
Get:2 http://ftp.debian.org etch/main sendmail-base 8.13.8-3 [347kB]
Get:3 http://ftp.debian.org etch/main sendmail-cf 8.13.8-3 [285kB]
Get:4 http://ftp.debian.org etch/main sendmail-bin 8.13.8-3 [831kB]
Get:5 http://ftp.debian.org etch/main rmail 8.13.8-3 [229kB]
Get:6 http://ftp.debian.org etch/main sensible-mda 8.13.8-3 [204kB]
Get:7 http://ftp.debian.org etch/main sendmail 8.13.8-3 [198kB]
Fetched 2476kB in 3s (758kB/s)    
(Reading database ... 54082 files and directories currently installed.)
Removing exim4 ...
dpkg: exim4-base: dependency problems, but removing anyway as you request:
 exim4-daemon-light depends on exim4-base (>= 4.63).
Removing exim4-base ...
Stopping MTA: exim4_listener.
Removing exim4-config ...
dpkg: exim4-daemon-light: dependency problems, but removing anyway as you request:
 at depends on mail-transport-agent; however:
  Package mail-transport-agent is not installed.
  Package exim4-daemon-light which provides mail-transport-agent is to be removed.
 mailx depends on exim4 | mail-transport-agent; however:
  Package exim4 is not installed.
  Package mail-transport-agent is not installed.
  Package exim4-daemon-light which provides mail-transport-agent is to be removed.
 mutt depends on exim4 | mail-transport-agent; however:
  Package exim4 is not installed.
  Package mail-transport-agent is not installed.
  Package exim4-daemon-light which provides mail-transport-agent is to be removed.
Removing exim4-daemon-light ...
Stopping MTA:.
Selecting previously deselected package make.
(Reading database ... 53945 files and directories currently installed.)
Unpacking make (from .../archives/make_3.81-2_i386.deb) ...
Selecting previously deselected package sendmail-base.
Unpacking sendmail-base (from .../sendmail-base_8.13.8-3_all.deb) ...
Selecting previously deselected package sendmail-cf.
Unpacking sendmail-cf (from .../sendmail-cf_8.13.8-3_all.deb) ...
Selecting previously deselected package sendmail-bin.
Unpacking sendmail-bin (from .../sendmail-bin_8.13.8-3_i386.deb) ...
Selecting previously deselected package rmail.
Unpacking rmail (from .../rmail_8.13.8-3_i386.deb) ...
Selecting previously deselected package sensible-mda.
Unpacking sensible-mda (from .../sensible-mda_8.13.8-3_i386.deb) ...
Selecting previously deselected package sendmail.
Unpacking sendmail (from .../sendmail_8.13.8-3_all.deb) ...
Setting up make (3.81-2) ...
Setting up sendmail-base (8.13.8-3) ...
adduser: Warning: that home directory does not belong to the user you are currently creating.
adduser: Warning: that home directory does not belong to the user you are currently creating.

Setting up sendmail-cf (8.13.8-3) ...
Setting up sendmail-bin (8.13.8-3) ...

You are doing a new install, or have erased /etc/mail/sendmail.mc.
If you've accidentaly erased /etc/mail/sendmail.mc, check /var/backups.

I am creating a safe, default sendmail.mc for you and you can
run sendmailconfig later if you need to change the defaults.

Stopping Mail Transport Agent: sendmail.
Updating sendmail environment ...
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Could not open /etc/mail/databases(No such file or directory), creating it.
Could not open /etc/mail/sendmail.mc(No such file or directory)
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Turning off Host Status collection
Could not open /etc/mail/databases(No such file or directory), creating it.
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...

Checking filesystem, this may take some time - it will not hang!
  ...   Done.
 
Checking for installed MDAs...
Adding link for newly extant program (mail.local)
Adding link for newly extant program (procmail)
sasl2-bin not installed, not configuring sendmail support.

To enable sendmail SASL2 support at a later date, invoke "/usr/share/sendmail/update_auth"

 
Creating/Updating SSL(for TLS) information
Creating /etc/mail/tls/starttls.m4...
Creating SSL certificates for sendmail.
Generating RSA private key, 2048 bit long modulus
............+++
...................+++
e is 65537 (0x10001)

*** *** *** WARNING *** WARNING *** WARNING *** WARNING *** *** ***

Everything you need to support STARTTLS (encrypted mail transmission
and user authentication via certificates) is installed and configured
but *IS* not being used.

To enable sendmail to use STARTTLS, you need to:
1) Add this line to /etc/mail/sendmail.mc and optionally
   to /etc/mail/submit.mc:
  include(`/etc/mail/tls/starttls.m4')dnl
2) Run sendmailconfig
3) Restart sendmail

 
Updating /etc/hosts.allow, adding "sendmail: all".

Please edit /etc/hosts.allow and check the rules location to
make sure your security measures have not been overridden -
it is common to move the sendmail:all line to the *end* of
the file, so your more selective rules take precedence.
Checking {sendmail,submit}.mc and related databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/databases...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Creating /etc/mail/Makefile...
Reading configuration from /etc/mail/sendmail.conf.
Validating configuration.
Writing configuration to /etc/mail/sendmail.conf.
Writing /etc/cron.d/sendmail.
Disabling HOST statistics file(/var/lib/sendmail/host_status).
Creating /etc/mail/sendmail.cf...
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
 
Creating /etc/mail/submit.cf...
Informational: confCR_FILE file empty: /etc/mail/relay-domains
Warning: confCT_FILE source file not found: /etc/mail/trusted-users
 it was created
Informational: confCT_FILE file empty: /etc/mail/trusted-users
Warning: confCW_FILE source file not found: /etc/mail/local-host-names
 it was created
Warning: access_db source file not found: /etc/mail/access
 it was created
Updating /etc/mail/access...
Linking /etc/aliases to /etc/mail/aliases
Updating /etc/mail/aliases...
/etc/mail/aliases: 13 aliases, longest 10 bytes, 142 bytes total
 
Warning: 3 database(s) sources
        were not found, (but were created)
        please investigate.
 
Warning: These messages were issued while creating sendmail.cf
        make sure they are benign before starting sendmail!
 
Errors in generating sendmail.cf
*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`always_add_domain')*** ERROR: FEATURE() should be before MAILER()
*** MAILER(`local') must appear after FEATURE(`allmasquerade')*** ERROR: FEATURE() should be before MAILER()
 
Starting Mail Transport Agent: sendmail.

Setting up rmail (8.13.8-3) ...
Setting up sensible-mda (8.13.8-3) ...
Setting up sendmail (8.13.8-3) ...
localhost:~# sendmail
Recipient names must be specified
 
Old 05-23-2007, 12:26 AM   #2
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
I actually fixed the errors. I also went through some guides off the net on setup but I can't get it to send at all. Is there somewhere I am suppose to put in my smtp settings?
 
Old 05-23-2007, 07:15 AM   #3
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Any specific reason you switched to sendmail ? Personally I would have switched to Postfix if I were changing it as postfix is easier to configure and manage..
 
Old 05-23-2007, 07:38 AM   #4
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
No, not really other then the fact that it says for the php.mail function to be used you have to use sendmail or recompile. I installed from the packages so I can't recompile.

nomb
 
Old 05-23-2007, 01:28 PM   #5
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Postfix provides a sendmail link so anything attempting to send via sendmail should work fine with postfix..

http://www.postfix.org/sendmail.1.html

I've heard sendmail is a bear to get configured and working properly if you are not familiar with it. I can't speak from personal experience on that note, but I've found Postfix to be relatively easy to configure and get working.
 
Old 05-23-2007, 01:32 PM   #6
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
awsome, I will definately try that.

Any suggestions?
 
Old 05-23-2007, 03:55 PM   #7
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
I followed this how-to just (on Etch rather than Sarge.. )
but then again I needed a full blown mail server, not just something the web server can use to send an email..
A basic install of postfix should be able to send mail without too much trouble and practically no configuration.


According to the comment at this link PHP mail() should work with qmail or postfix with the wrapper I referred to earlier..
http://www.cyberciti.biz/tips/howto-...-lighttpd.html

Last edited by farslayer; 05-23-2007 at 03:57 PM.
 
Old 05-23-2007, 04:08 PM   #8
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
I just got rid of sendmail and tried postfix and I've configured the thing 3 times already. I can't get it to send anythin out. It says 250 2.0.0 Ok: queued as 269F143C22

but then it never goes out...

Last edited by nomb; 05-23-2007 at 05:13 PM.
 
Old 05-23-2007, 05:18 PM   #9
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
This is my log file, can anyone see any problems?

Code:
May 23 15:05:26 localhost postfix/cleanup[11562]: 269F143C22: message-id=<20070523190520.269F143C22@mail.nombyte.com>
May 23 15:05:26 localhost postfix/qmgr[11533]: 269F143C22: from=<nomb@nombyte.com>, size=359, nrcpt=1 (queue active)
May 23 15:05:26 localhost postfix/smtp[11563]: 269F143C22: to=<nomb85@comcast.net>, relay=gateway-r.comcast.net[204.127.198.26]:25, delay=19, delays=18/0.03$
May 23 15:05:26 localhost postfix/cleanup[11562]: DA0B143C24: message-id=<20070523190526.DA0B143C24@mail.nombyte.com>
May 23 15:05:26 localhost postfix/qmgr[11533]: DA0B143C24: from=<>, size=2711, nrcpt=1 (queue active)
May 23 15:05:26 localhost postfix/bounce[11564]: 269F143C22: sender non-delivery notification: DA0B143C24
May 23 15:05:26 localhost postfix/qmgr[11533]: 269F143C22: removed
May 23 15:05:27 localhost postfix/smtp[11563]: DA0B143C24: to=<nomb@nombyte.com>, relay=smtp.secureserver.net[64.202.166.12]:25, delay=1, delays=0.02/0/0.83$
May 23 15:05:27 localhost postfix/qmgr[11533]: DA0B143C24: removed
May 23 15:05:34 localhost postfix/smtpd[11555]: disconnect from localhost[127.0.0.1]
May 23 15:08:51 localhost postfix/master[11528]: terminating on signal 15
May 23 15:11:43 localhost postfix/master[12016]: daemon started -- version 2.3.8, configuration /etc/postfix
May 23 15:16:49 localhost postfix/pickup[12021]: B1C8243C15: uid=33 from=<www-data>
May 23 15:16:49 localhost postfix/cleanup[12028]: B1C8243C15: message-id=<20070523191649.B1C8243C15@localhost>
May 23 15:16:49 localhost postfix/qmgr[12022]: B1C8243C15: from=<www-data@localhost>, size=305, nrcpt=1 (queue active)
May 23 15:16:50 localhost postfix/smtp[12030]: B1C8243C15: to=<nomb@nombyte.com>, relay=smtp.secureserver.net[64.202.166.12]:25, delay=0.68, delays=0.06/0.0$
May 23 15:16:50 localhost postfix/cleanup[12028]: 6F4F943C18: message-id=<20070523191650.6F4F943C18@localhost>
May 23 15:16:50 localhost postfix/qmgr[12022]: 6F4F943C18: from=<>, size=2100, nrcpt=1 (queue active)
May 23 15:16:50 localhost postfix/bounce[12031]: B1C8243C15: sender non-delivery notification: 6F4F943C18
May 23 15:16:50 localhost postfix/qmgr[12022]: B1C8243C15: removed
May 23 15:16:50 localhost postfix/local[12032]: 6F4F943C18: to=<www-data@localhost>, relay=local, delay=0.06, delays=0.02/0.02/0/0.03, dsn=2.0.0, status=sen$
May 23 15:16:50 localhost postfix/qmgr[12022]: 6F4F943C18: removed
 
Old 05-23-2007, 06:56 PM   #10
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
here's part of your problem.. from: www-data@localhost which leads me to believe you don't have your server configured quite right...

verify the hostname of your machine is set properly.. http://www.cpqlinux.com/hostname.html a lot of mail servers will not accept mail from a server that doesn't properly identify itself with a fqdn (fully qualified domain name) that will resolve with a reverse lookup..

basically if the IP address of your server is 1.2.3.4 and your domain is mydomain.net and the server name is mail the fqdn would be mail.mydomain.net. so another server accepting mail from you would receive the message look at the header and say this mail is from mydomain.net and the IP address of the server is 1.2.3.4 it would do a lookup to verifty that 1.2.3.4 resolves to mail.mydomain.net.

mail coming from you should come from www-data@mydomain.net not www-data@localhost

you may want to try adding the following to your config

masquerade_domains = mydomain.net

substituting your registered domain name of course.. and verify your hostname is set properly.

also if you could post the output of the following command postconf -n
that will output any configuration changes you have made that are not at their default settings.. a much shorter list than posting the entire postfix config


also don't forget to do a postfix reload after any configuration changes

Last edited by farslayer; 05-23-2007 at 07:00 PM.
 
Old 05-23-2007, 06:58 PM   #11
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
To be honest I never really understood how hostnames work. should I change it permanetly to nombyte.com? and then for the mail, mail.nombyte.com?

Last edited by nomb; 05-23-2007 at 08:15 PM.
 
Old 05-23-2007, 07:26 PM   #12
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
postconf -n ? would help to see that...

also looking at the DNS configuration for your domain it shows that someone else is handling mail (your hosting provider I guess)

Code:
default@debian:~$ dig nombyte.com MX

; <<>> DiG 9.4.1 <<>> nombyte.com MX
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60555
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 3

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

;; ANSWER SECTION:
nombyte.com.            3600    IN      MX      10 mailstore1.secureserver.net.
nombyte.com.            3600    IN      MX      0 smtp.secureserver.net.

;; AUTHORITY SECTION:
nombyte.com.            3600    IN      NS      NS5.secureserver.net.
nombyte.com.            3600    IN      NS      NS6.secureserver.net.

;; ADDITIONAL SECTION:
mailstore1.secureserver.net. 1228 IN    A       64.202.166.11
NS5.secureserver.net.   1003    IN      A       208.109.78.180
NS6.secureserver.net.   855     IN      A       208.109.80.75

;; Query time: 169 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Wed May 23 20:26:47 2007
;; MSG SIZE  rcvd: 177
so anyone doing a reverse lookup on your serer, well it's going to fail becasue your mail servers IP address is not the one linked to the A record referenced in the MX record of DNS...

Code:
default@debian:~$ dig nombyte.com MX

; <<>> DiG 9.4.1 <<>> nombyte.com MX
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 60555
;; flags: qr rd ra; QUERY: 1, ANSWER: 2, AUTHORITY: 2, ADDITIONAL: 3

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

;; ANSWER SECTION:
nombyte.com.            3600    IN      MX      10 mail.nombyte.com.


;; AUTHORITY SECTION:
nombyte.com.            3600    IN      NS      NS5.secureserver.net.
nombyte.com.            3600    IN      NS      NS6.secureserver.net.

;; ADDITIONAL SECTION:
mail.nombyte.com.    1228    IN      A       64.202.166.11<- Public IP of your mail server
NS5.secureserver.net.   1003    IN      A       208.109.78.180
NS6.secureserver.net.   855     IN      A       208.109.80.75

;; Query time: 169 msec
;; SERVER: 192.168.2.1#53(192.168.2.1)
;; WHEN: Wed May 23 20:26:47 2007
;; MSG SIZE  rcvd: 177

Last edited by farslayer; 05-23-2007 at 07:32 PM.
 
Old 05-23-2007, 07:38 PM   #13
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
so what do I need to do to be able to send mail out? I don't have to do anything else. Is there anyway I can specify an external smtp server or something like that? Altho I guess it doesn't matter since I can't even ftp in anymore. This is what I get, I've tried with a user name and everything:

localhost:/etc/init.d# ftp localhost 25
Connected to localhost.
220 localhost ESMTP Postfix (Debian/GNU)
Name (localhost:nomb):
502 5.5.2 Error: command not recognized
Login failed.
ftp>

Last edited by nomb; 05-23-2007 at 08:15 PM.
 
Old 05-23-2007, 08:17 PM   #14
farslayer
LQ Guru
 
Registered: Oct 2005
Location: Northeast Ohio
Distribution: linuxdebian
Posts: 7,249
Blog Entries: 5

Rep: Reputation: 191Reputation: 191
Yes you can specify another server to forward mail through, probably your best bet in this instance.

http://www.howtoforge.com/postfix_re...her_mailserver
 
Old 05-23-2007, 08:20 PM   #15
nomb
Member
 
Registered: Jan 2006
Distribution: Debian Testing
Posts: 675

Original Poster
Rep: Reputation: 58
Ok, what about the ftp problem? I feel like I've messed something up.
 
  


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
sendmail errors fakie_flip Linux - Server 1 10-08-2006 01:03 AM
sendmail errors UltraSoul Solaris / OpenSolaris 3 07-09-2006 07:25 PM
Configuring Sendmail - errors alishariefm Linux - Networking 1 02-03-2006 08:29 AM
Sendmail errors - in logs mac_casey Linux - Newbie 0 01-31-2005 08:20 AM
Redhat 9 Sendmail errors? angst6 Linux - Software 1 01-30-2004 02:53 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

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