LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2021, 07:52 AM   #1
awaismalik
Member
 
Registered: Mar 2021
Posts: 50

Rep: Reputation: Disabled
mail server Postfix and package bsd-mailx


I am trying to install Postfix in my ubuntu server. when i run sudo apt install bsd-mailx. i am getting an error dpkg: Warning: File list file of package "telnetd" is missing; it is assumed,
that the package does not currently have any files installed.

can someone please help me ?
 
Old 07-26-2021, 08:03 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by awaismalik View Post
I am trying to install Postfix in my ubuntu server. when i run sudo apt install bsd-mailx. i am getting an error
Code:
dpkg: Warning: File list file of package "telnetd" is missing; it is assumed, that the package does not currently have any files installed.
can someone please help me ?
What version of Ubuntu? Because there are several easily-found guides on installation:
https://zoomadmin.com/HowToInstall/U...kage/bsd-mailx

With more details we might be able to tell you more.
 
Old 07-26-2021, 08:20 AM   #3
awaismalik
Member
 
Registered: Mar 2021
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
What version of Ubuntu? Because there are several easily-found guides on installation:
https://zoomadmin.com/HowToInstall/U...kage/bsd-mailx

With more details we might be able to tell you more.
I followed the suggested link but still facing same error. More info i am using ubuntu server 18.04 only command line interface.

$ sudo apt-get install -y bsd-mailx
Package lists are read... Ready
Dependency tree is built.
Status information is read.... Done
The following additional packages are installed:
liblockfile-bin liblockfile1
The following NEW packages are installed:
bsd-mailx liblockfile-bin liblockfile1
0 updated, 3 reinstalled, 0 to remove and 0 not updated.
84.7 kB of archives need to be downloaded.
After this operation, 249 kB of additional disk space is used.
Get:1 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic/main amd64 liblockfile-bin amd64 1.14-1.1 [11.9 kB]
Fetch:2 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic/main amd64 liblockfile1 amd64 1.14-1.1 [6.804 B]
Fetch:3 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic/main amd64 bsd-mailx amd64 8.1.2-0.20160123cvs-4 [66.0 kB]
Fetched 84.7 kB in 0 s (1,747 kB/s).
Previously unselected package liblockfile-bin is selected.
dpkg: Warning: File list file of package "telnetd" is missing; it is assumed,
that the package currently has no files installed
dpkg: Warning: File list file of package "telnet" is missing; it is assumed
that the package does not currently have any files installed
(Read database ... 29908 files and directories are currently installed).
Preparing to unpack .../liblockfile-bin_1.14-1.1_amd64.deb ...
Unpacking liblockfile-bin (1.14-1.1) ...
Previously unselected package liblockfile1:amd64 is selected.
Preparing to unpack .../liblockfile1_1.14-1.1_amd64.deb ...
Unpacking liblockfile1:amd64 (1.14-1.1) ...
Previously unselected package bsd-mailx is selected.
Preparing to unpack .../bsd-mailx_8.1.2-0.20160123cvs-4_amd64.deb ...
Unpacking bsd-mailx (8.1.2-0.20160123cvs-4) ...
liblockfile-bin (1.14-1.1) is set up ...
liblockfile1:amd64 (1.14-1.1) is set up ...
bsd-mailx (8.1.2-0.20160123cvs-4) is set up ...
update-alternatives: /usr/bin/bsd-mailx is used to deploy /usr/bin/mailx (mailx) in automatic mode
triggers for man-db (2.8.3-2ubuntu0.1) are processed ...
Triggers for libc-bin (2.27-3ubuntu1.4) are processed ...
 
Old 07-26-2021, 08:34 AM   #4
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by awaismalik View Post
I followed the suggested link but still facing same error. More info i am using ubuntu server 18.04 only command line interface.
Code:
$ sudo apt-get install -y bsd-mailx
Package lists are read... Ready
Dependency tree is built.       
Status information is read.... Done
The following additional packages are installed:
  liblockfile-bin liblockfile1
The following NEW packages are installed:
  bsd-mailx liblockfile-bin liblockfile1
0 updated, 3 reinstalled, 0 to remove and 0 not updated.
84.7 kB of archives need to be downloaded.
After this operation, 249 kB of additional disk space is used.
Get:1 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic/main amd64 liblockfile-bin amd64 1.14-1.1 [11.9 kB]
Fetch:2 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic/main amd64 liblockfile1 amd64 1.14-1.1 [6.804 B]
Fetch:3 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic/main amd64 bsd-mailx amd64 8.1.2-0.20160123cvs-4 [66.0 kB]
Fetched 84.7 kB in 0 s (1,747 kB/s).
Previously unselected package liblockfile-bin is selected.
dpkg: Warning: File list file of package "telnetd" is missing; it is assumed,
 that the package currently has no files installed
dpkg: Warning: File list file of package "telnet" is missing; it is assumed
 that the package does not currently have any files installed
(Read database ... 29908 files and directories are currently installed).
Preparing to unpack .../liblockfile-bin_1.14-1.1_amd64.deb ...
Unpacking liblockfile-bin (1.14-1.1) ...
Previously unselected package liblockfile1:amd64 is selected.
Preparing to unpack .../liblockfile1_1.14-1.1_amd64.deb ...
Unpacking liblockfile1:amd64 (1.14-1.1) ...
Previously unselected package bsd-mailx is selected.
Preparing to unpack .../bsd-mailx_8.1.2-0.20160123cvs-4_amd64.deb ...
Unpacking bsd-mailx (8.1.2-0.20160123cvs-4) ...
liblockfile-bin (1.14-1.1) is set up ...
liblockfile1:amd64 (1.14-1.1) is set up ...
bsd-mailx (8.1.2-0.20160123cvs-4) is set up ...
update-alternatives: /usr/bin/bsd-mailx is used to deploy /usr/bin/mailx (mailx) in automatic mode
triggers for man-db (2.8.3-2ubuntu0.1) are processed ...
Triggers for libc-bin (2.27-3ubuntu1.4) are processed ...
So Ubuntu 18.04...did you run the first step??
Code:
sudo apt update
sudo apt install bsd-mailx
 
Old 07-26-2021, 11:23 AM   #5
awaismalik
Member
 
Registered: Mar 2021
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
So Ubuntu 18.04...did you run the first step??
Code:
sudo apt update
sudo apt install bsd-mailx

yes i did the first step also
 
Old 07-26-2021, 12:08 PM   #6
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by awaismalik View Post
yes i did the first step also
...and the results of that were what??? And you are not typing in the same command (you're using the -y flag).

And I'd verify the sources lists you're using also. But you're getting WARNINGS...have you tried to run the mailx command? And if you want to install the telnet sources, the package names for 18.04 are inetutils-telnetd and inetutils-telnet...both of which you could find by searching the Ubuntu site (have you done that?)
https://packages.ubuntu.com/search?s...eywords=telnet

If you're the systems administrator, have you done any troubleshooting at all?
 
Old 07-26-2021, 01:12 PM   #7
awaismalik
Member
 
Registered: Mar 2021
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
...and the results of that were what??? And you are not typing in the same command (you're using the -y flag).

And I'd verify the sources lists you're using also. But you're getting WARNINGS...have you tried to run the mailx command? And if you want to install the telnet sources, the package names for 18.04 are inetutils-telnetd and inetutils-telnet...both of which you could find by searching the Ubuntu site (have you done that?)
https://packages.ubuntu.com/search?s...eywords=telnet

If you're the systems administrator, have you done any troubleshooting at all?

sudo apt-get update -y
OK:1 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic InRelease
Fetch:2 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic-updates InRelease [88,7 kB]
Fetch:3 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic-security InRelease [88,7 kB]
177 kB were fetched in 1 s (252 kB/s).
Packet lists are read... Ready
 
Old 07-26-2021, 01:43 PM   #8
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by awaismalik View Post
sudo apt-get update -y
OK:1 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic InRelease
Fetch:2 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic-updates InRelease [88,7 kB]
Fetch:3 ftp://ftp.stratoserver.net/pub/linux/ubuntu bionic-security InRelease [88,7 kB]
177 kB were fetched in 1 s (252 kB/s).
Packet lists are read... Ready
Sorry, are you not reading or understanding what's being posted???

AGAIN:
  • You had WARNINGS...not errors.
  • Have you actually TRIED running mailx after the installation?
  • You were handed two commands, and you're still running them with the -y flag, despite being advised not to.
  • You were given two package names; have you looked for THOSE?
  • Have you verified your repository lists??
  • Have you done ANY troubleshooting???
I would get your systems administrator involved at this point, if I were you.
 
Old 07-26-2021, 02:20 PM   #9
awaismalik
Member
 
Registered: Mar 2021
Posts: 50

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TB0ne View Post
Sorry, are you not reading or understanding what's being posted???

AGAIN:
  • You had WARNINGS...not errors.
  • Have you actually TRIED running mailx after the installation?
  • You were handed two commands, and you're still running them with the -y flag, despite being advised not to.
  • You were given two package names; have you looked for THOSE?
  • Have you verified your repository lists??
  • Have you done ANY troubleshooting???
I would get your systems administrator involved at this point, if I were you.

Thanks you so much. I am setting this up for the first time. I am following the tutorial here https://www.arubacloud.com/tutorial/...ntu-20-04.aspx. What i did so far.
[*] First i setup mail server on my Linux mint PC instead of trying the tutorial directly on the server.[*] My mail server setup on my Linux mint PC was successful. I tried and tested to send the email.[*] After that i performed the same steps as in tutorial on my Ubuntu server.[*] It showed up warning i now this. But i assumed from this that email will not be sent successfully. So this i am facing now in testing. I am looking at log file located at /var/log/mail.log.

Now answers to your questions.[*] Yes i have tried running the mailx.
sudo mailx -r test@domain.com -s "SUBJECT" [EMAIL_ADDRESS][*] I also run the command without y. same error showed up. I did this by removing and reinstalling the postfix and bsd-mailx packages.[*] Yes[*] After running the mailx command looking at /var/log/mail.log. it has an error: open database /etc/postfix/smtppasswd.db: No such file or directory.
While i copied this file from old mail server already running to my new server. but still its not working.
Other than this i dpkg --configure -a during the initial error of installation.[*]Have you verified your repository lists?? This i dont know. How to perform.
 
Old 07-26-2021, 04:24 PM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,636

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by awaismalik View Post
Thanks you so much. I am setting this up for the first time. I am following the tutorial here https://www.arubacloud.com/tutorial/...ntu-20-04.aspx.
So you're using Ubuntu 18.04....and yet you're following a guide for Ubuntu 20.04??? Do you not see a problem with that???
Quote:
What i did so far.
[*] First i setup mail server on my Linux mint PC instead of trying the tutorial directly on the server.[*] My mail server setup on my Linux mint PC was successful. I tried and tested to send the email.[*] After that i performed the same steps as in tutorial on my Ubuntu server.[*] It showed up warning i now this. But i assumed from this that email will not be sent successfully. So this i am facing now in testing. I am looking at log file located at /var/log/mail.log.

Now answers to your questions.[*] Yes i have tried running the mailx.
sudo mailx -r test@domain.com -s "SUBJECT" [EMAIL_ADDRESS]
And did you RECEIVE the email??
Quote:
[*] I also run the command without y. same error showed up. I did this by removing and reinstalling the postfix and bsd-mailx packages.
And again, those were NOT ERRORS but WARNINGS
Quote:
[*] Yes
And did you then INSTALL THEM????
Quote:
[*] After running the mailx command looking at /var/log/mail.log. it has an error: open database /etc/postfix/smtppasswd.db: No such file or directory.
And did you look this error up?? It's telling you plainly that you are missing the database file...did you configure postfix, set up things, etc.??? Again, are you doing any research of your own, because just putting "postfix /etc/postfix/smtppasswd.db: No such file or directory" into Google gives you many guides and solutions to this.

Quote:
While i copied this file from old mail server already running to my new server. but still its not working.
You don't COPY these things over; email isn't a trivial service to configure, and there are no shortcuts. Remove everything you've copied over, and starting fresh is the best way to go.
Quote:
Other than this i dpkg --configure -a during the initial error of installation.[*]Have you verified your repository lists?? This i dont know. How to perform.
Again, you don't appear to be doing much to resolve your issues, since putting "ubuntu 18.04 repository list" pulls up:
https://askubuntu.com/questions/1082...onic-repo-list


You now (after many posts) only mention a Mint system that you copied things from, and haven't been answering or even acknowledging things. Again, putting "how to configure postfix on ubuntu 18.04" into Google pulls up, as the FIRST TWO HITS:
https://www.digitalocean.com/communi...n-ubuntu-18-04
https://www.digitalocean.com/communi...n-ubuntu-18-04

..complete guides, with commands. Again, you need to get your actual systems administrator to do this.
 
  


Reply

Tags
dpkg, dpkg-deb, mailserver, postfix



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
[SOLVED] No package 'x11' found No package 'xext' found No package 'xdamage' found No package 'xfixes' found No package 'x11-xcb' found Jigsaw Linux From Scratch 14 02-23-2021 08:35 PM
[SOLVED] "Snorkeling on an empty pipe": error in S-mailx (mailx 4.19.11) RandomTroll Linux - Software 0 11-30-2018 10:45 PM
TO ANYONE USING MAILX (mailx 12.1). stf92 Linux - Software 22 07-08-2010 09:44 PM
PC BSD, Open BSD, or Free BSD ? Alexvader *BSD 5 02-08-2010 12:40 AM
Root Mail bsd-mailx parent's_basement Debian 1 06-06-2008 04:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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