DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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?
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..
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.
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.
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.
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
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.
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
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
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>
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.