Error during “Running newaliases”How can I monitor syslog and send notification based on events?apt-get autoremove returns errorError while installing postfixpostfix-dovecot email sending works with squirrel mail but not with Thunderbird?Unable to install jdk 6 after uninstalling jdk 7Ubuntu 15.10 The installation or removal of a software package failedError while setting up jdk8 on Ubuntu 14.04LTSdpkg Error: libc6-i386 half-installedCan not install pymol because I cannot install libfreetype6-devI get “dpkg error” when I try to install anythingmynetworks parameter in main.cf file of postfix server helpE: Sub-process /usr/bin/dpkg returned an error code (1) when try to execute apt-get install python3-pexpectE: Sub-process /usr/bin/dpkg returned an error code (1) installing jdk and NetBeans

What prevents the use of a multi-segment ILS for non-straight approaches?

How much character growth crosses the line into breaking the character

Why did the HMS Bounty go back to a time when whales are already rare?

Creepy dinosaur pc game identification

What should you do when eye contact makes your subordinate uncomfortable?

Not using 's' for he/she/it

Aragorn's "guise" in the Orthanc Stone

Has any country ever had 2 former presidents in jail simultaneously?

How do you make your own symbol when Detexify fails?

If infinitesimal transformations commute why dont the generators of the Lorentz group commute?

Is it better practice to read straight from sheet music rather than memorize it?

Lowest total scrabble score

C++ debug/print custom type with GDB : the case of nlohmann json library

Should I outline or discovery write my stories?

I am looking for the correct translation of love for the phrase "in this sign love"

How do I color the graph in datavisualization?

Non-trope happy ending?

Offered money to buy a house, seller is asking for more to cover gap between their listing and mortgage owed

Why does the Sun have different day lengths, but not the gas giants?

Pre-mixing cryogenic fuels and using only one fuel tank

Which one is correct as adjective “protruding” or “protruded”?

Why electric field inside a cavity of a non-conducting sphere not zero?

The screen of my macbook suddenly broken down how can I do to recover

How do you respond to a colleague from another team when they're wrongly expecting that you'll help them?



Error during “Running newaliases”


How can I monitor syslog and send notification based on events?apt-get autoremove returns errorError while installing postfixpostfix-dovecot email sending works with squirrel mail but not with Thunderbird?Unable to install jdk 6 after uninstalling jdk 7Ubuntu 15.10 The installation or removal of a software package failedError while setting up jdk8 on Ubuntu 14.04LTSdpkg Error: libc6-i386 half-installedCan not install pymol because I cannot install libfreetype6-devI get “dpkg error” when I try to install anythingmynetworks parameter in main.cf file of postfix server helpE: Sub-process /usr/bin/dpkg returned an error code (1) when try to execute apt-get install python3-pexpectE: Sub-process /usr/bin/dpkg returned an error code (1) installing jdk and NetBeans













4















I need some help with this please.



I started here as mentioned: in this post This post



nitapika@nitapika-51:~$ echo bla | mail -s testmail lisa@you5.com

The program 'mail' is currently not installed. You can install it by typing:
sudo apt-get install mailutils


Then installed mailutils: and received this error



Running newaliases
newaliases: warning: valid_hostname: numeric hostname: 04
newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 75
dpkg: dependency problems prevent configuration of mailutils:
mailutils depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package postfix which provides default-mta is not configured yet.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is not configured yet.

dpkg: error processing package mailutils (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.21-0ubuntu4) ...No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:
postfix
mailutils
E: Sub-process /usr/bin/dpkg returned an error code (1)

nitapika@nitapika-51:~$ sudo /etc/init.d/postfix reload

[....] Reloading postfix configuration (via systemctl): postfix.serviceJob for postfix.service invalid.
failed!


Then tried:



nitapika@nitapika-51:~$ sudo apt-get -f install 

Reading package lists... Done
Building dependency tree
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
2 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up postfix (2.11.3-1ubuntu2) ...

Postfix configuration was not changed. If you need to make changes, edit
/etc/postfix/main.cf (and others) as needed. To view Postfix configuration
values, see postconf(1).

After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

Running newaliases
newaliases: warning: valid_hostname: numeric hostname: 04
newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
dpkg: error processing package postfix (--configure):
subprocess installed post-installation script returned error exit status 75
dpkg: dependency problems prevent configuration of mailutils:
mailutils depends on default-mta | mail-transport-agent; however:
Package default-mta is not installed.
Package postfix which provides default-mta is not configured yet.
Package mail-transport-agent is not installed.
Package postfix which provides mail-transport-agent is not configured yet.

dpkg: error processing package mailutils (--configure):
dependency problems - leaving unconfigured
Processing triggers for libc-bin (2.21-0ubuntu4) ...No apport report written because the error message indicates its a followup error from a previous failure.

Errors were encountered while processing:
postfix
mailutils
E: Sub-process /usr/bin/dpkg returned an error code (1)


And then:



nitapika@nitapika-51:~$ sudo dpkg-reconfigure -plow postfix
/usr/sbin/dpkg-reconfigure: postfix is broken or not fully installed


Not sure how to fix this. I only need the logcheck app to send me abnormalities.










share|improve this question




























    4















    I need some help with this please.



    I started here as mentioned: in this post This post



    nitapika@nitapika-51:~$ echo bla | mail -s testmail lisa@you5.com

    The program 'mail' is currently not installed. You can install it by typing:
    sudo apt-get install mailutils


    Then installed mailutils: and received this error



    Running newaliases
    newaliases: warning: valid_hostname: numeric hostname: 04
    newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
    dpkg: error processing package postfix (--configure):
    subprocess installed post-installation script returned error exit status 75
    dpkg: dependency problems prevent configuration of mailutils:
    mailutils depends on default-mta | mail-transport-agent; however:
    Package default-mta is not installed.
    Package postfix which provides default-mta is not configured yet.
    Package mail-transport-agent is not installed.
    Package postfix which provides mail-transport-agent is not configured yet.

    dpkg: error processing package mailutils (--configure):
    dependency problems - leaving unconfigured
    Processing triggers for libc-bin (2.21-0ubuntu4) ...No apport report written because the error message indicates its a followup error from a previous failure.

    Errors were encountered while processing:
    postfix
    mailutils
    E: Sub-process /usr/bin/dpkg returned an error code (1)

    nitapika@nitapika-51:~$ sudo /etc/init.d/postfix reload

    [....] Reloading postfix configuration (via systemctl): postfix.serviceJob for postfix.service invalid.
    failed!


    Then tried:



    nitapika@nitapika-51:~$ sudo apt-get -f install 

    Reading package lists... Done
    Building dependency tree
    Reading state information... Done
    0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
    2 not fully installed or removed.
    After this operation, 0 B of additional disk space will be used.
    Setting up postfix (2.11.3-1ubuntu2) ...

    Postfix configuration was not changed. If you need to make changes, edit
    /etc/postfix/main.cf (and others) as needed. To view Postfix configuration
    values, see postconf(1).

    After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

    Running newaliases
    newaliases: warning: valid_hostname: numeric hostname: 04
    newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
    dpkg: error processing package postfix (--configure):
    subprocess installed post-installation script returned error exit status 75
    dpkg: dependency problems prevent configuration of mailutils:
    mailutils depends on default-mta | mail-transport-agent; however:
    Package default-mta is not installed.
    Package postfix which provides default-mta is not configured yet.
    Package mail-transport-agent is not installed.
    Package postfix which provides mail-transport-agent is not configured yet.

    dpkg: error processing package mailutils (--configure):
    dependency problems - leaving unconfigured
    Processing triggers for libc-bin (2.21-0ubuntu4) ...No apport report written because the error message indicates its a followup error from a previous failure.

    Errors were encountered while processing:
    postfix
    mailutils
    E: Sub-process /usr/bin/dpkg returned an error code (1)


    And then:



    nitapika@nitapika-51:~$ sudo dpkg-reconfigure -plow postfix
    /usr/sbin/dpkg-reconfigure: postfix is broken or not fully installed


    Not sure how to fix this. I only need the logcheck app to send me abnormalities.










    share|improve this question


























      4












      4








      4








      I need some help with this please.



      I started here as mentioned: in this post This post



      nitapika@nitapika-51:~$ echo bla | mail -s testmail lisa@you5.com

      The program 'mail' is currently not installed. You can install it by typing:
      sudo apt-get install mailutils


      Then installed mailutils: and received this error



      Running newaliases
      newaliases: warning: valid_hostname: numeric hostname: 04
      newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
      dpkg: error processing package postfix (--configure):
      subprocess installed post-installation script returned error exit status 75
      dpkg: dependency problems prevent configuration of mailutils:
      mailutils depends on default-mta | mail-transport-agent; however:
      Package default-mta is not installed.
      Package postfix which provides default-mta is not configured yet.
      Package mail-transport-agent is not installed.
      Package postfix which provides mail-transport-agent is not configured yet.

      dpkg: error processing package mailutils (--configure):
      dependency problems - leaving unconfigured
      Processing triggers for libc-bin (2.21-0ubuntu4) ...No apport report written because the error message indicates its a followup error from a previous failure.

      Errors were encountered while processing:
      postfix
      mailutils
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      nitapika@nitapika-51:~$ sudo /etc/init.d/postfix reload

      [....] Reloading postfix configuration (via systemctl): postfix.serviceJob for postfix.service invalid.
      failed!


      Then tried:



      nitapika@nitapika-51:~$ sudo apt-get -f install 

      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      2 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Setting up postfix (2.11.3-1ubuntu2) ...

      Postfix configuration was not changed. If you need to make changes, edit
      /etc/postfix/main.cf (and others) as needed. To view Postfix configuration
      values, see postconf(1).

      After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

      Running newaliases
      newaliases: warning: valid_hostname: numeric hostname: 04
      newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
      dpkg: error processing package postfix (--configure):
      subprocess installed post-installation script returned error exit status 75
      dpkg: dependency problems prevent configuration of mailutils:
      mailutils depends on default-mta | mail-transport-agent; however:
      Package default-mta is not installed.
      Package postfix which provides default-mta is not configured yet.
      Package mail-transport-agent is not installed.
      Package postfix which provides mail-transport-agent is not configured yet.

      dpkg: error processing package mailutils (--configure):
      dependency problems - leaving unconfigured
      Processing triggers for libc-bin (2.21-0ubuntu4) ...No apport report written because the error message indicates its a followup error from a previous failure.

      Errors were encountered while processing:
      postfix
      mailutils
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      And then:



      nitapika@nitapika-51:~$ sudo dpkg-reconfigure -plow postfix
      /usr/sbin/dpkg-reconfigure: postfix is broken or not fully installed


      Not sure how to fix this. I only need the logcheck app to send me abnormalities.










      share|improve this question
















      I need some help with this please.



      I started here as mentioned: in this post This post



      nitapika@nitapika-51:~$ echo bla | mail -s testmail lisa@you5.com

      The program 'mail' is currently not installed. You can install it by typing:
      sudo apt-get install mailutils


      Then installed mailutils: and received this error



      Running newaliases
      newaliases: warning: valid_hostname: numeric hostname: 04
      newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
      dpkg: error processing package postfix (--configure):
      subprocess installed post-installation script returned error exit status 75
      dpkg: dependency problems prevent configuration of mailutils:
      mailutils depends on default-mta | mail-transport-agent; however:
      Package default-mta is not installed.
      Package postfix which provides default-mta is not configured yet.
      Package mail-transport-agent is not installed.
      Package postfix which provides mail-transport-agent is not configured yet.

      dpkg: error processing package mailutils (--configure):
      dependency problems - leaving unconfigured
      Processing triggers for libc-bin (2.21-0ubuntu4) ...No apport report written because the error message indicates its a followup error from a previous failure.

      Errors were encountered while processing:
      postfix
      mailutils
      E: Sub-process /usr/bin/dpkg returned an error code (1)

      nitapika@nitapika-51:~$ sudo /etc/init.d/postfix reload

      [....] Reloading postfix configuration (via systemctl): postfix.serviceJob for postfix.service invalid.
      failed!


      Then tried:



      nitapika@nitapika-51:~$ sudo apt-get -f install 

      Reading package lists... Done
      Building dependency tree
      Reading state information... Done
      0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
      2 not fully installed or removed.
      After this operation, 0 B of additional disk space will be used.
      Setting up postfix (2.11.3-1ubuntu2) ...

      Postfix configuration was not changed. If you need to make changes, edit
      /etc/postfix/main.cf (and others) as needed. To view Postfix configuration
      values, see postconf(1).

      After modifying main.cf, be sure to run '/etc/init.d/postfix reload'.

      Running newaliases
      newaliases: warning: valid_hostname: numeric hostname: 04
      newaliases: fatal: file /etc/postfix/main.cf: parameter mydomain: bad parameter value: 04
      dpkg: error processing package postfix (--configure):
      subprocess installed post-installation script returned error exit status 75
      dpkg: dependency problems prevent configuration of mailutils:
      mailutils depends on default-mta | mail-transport-agent; however:
      Package default-mta is not installed.
      Package postfix which provides default-mta is not configured yet.
      Package mail-transport-agent is not installed.
      Package postfix which provides mail-transport-agent is not configured yet.

      dpkg: error processing package mailutils (--configure):
      dependency problems - leaving unconfigured
      Processing triggers for libc-bin (2.21-0ubuntu4) ...No apport report written because the error message indicates its a followup error from a previous failure.

      Errors were encountered while processing:
      postfix
      mailutils
      E: Sub-process /usr/bin/dpkg returned an error code (1)


      And then:



      nitapika@nitapika-51:~$ sudo dpkg-reconfigure -plow postfix
      /usr/sbin/dpkg-reconfigure: postfix is broken or not fully installed


      Not sure how to fix this. I only need the logcheck app to send me abnormalities.







      software-installation postfix






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Apr 13 '17 at 12:25









      Community

      1




      1










      asked Oct 30 '15 at 12:18









      Nazeem JansenNazeem Jansen

      6516




      6516




















          2 Answers
          2






          active

          oldest

          votes


















          4















          1. Correct mydomain in /etc/postfix/main.cf.



            04 is not a valid domain name - a valid value is an entry of the tour domain.tld.




          2. Change the value for valid_hostname as well.



            This is only a warning but hostnames are not numeric - use the output of



            hostname --fqdn


          After that execute:



          sudo newaliases
          sudo apt-get install -f



          mydomain

          The internet domain name of this mail system. The default is to use
          $myhostname minus the first component, or "localdomain" (Postfix 2.3
          and later). $mydomain is used as a default value for many other
          configuration parameters.

          myhostname

          The internet hostname of this mail system. The default is to use the
          fully-qualified domain name (FQDN) from gethostname(), or to use the
          non-FQDN result from gethostname() and append ".$mydomain".$myhostname
          is used as a default value for many other configuration parameters.





          share|improve this answer

























          • Thank you. This solved the email issue. Now on to the logcheck setup.

            – Nazeem Jansen
            Oct 30 '15 at 14:36











          • I tried to test by running: sudo -u logcheck logcheck -o -t and received error: Oct 30 16:42:26 rotaderp gnome-session[2756]: Could not locate Tomboy on D-Bus. Perhaps it's not running? Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.406] [UniverseManager] Error while updating item source "Torrents": Cannot access Transmission RPC service Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.769] [UniverseManager] Error while updating item source "Firefox Places": Cannot cast from source type to destination type. Should Tomboy be installed?

            – Nazeem Jansen
            Oct 30 '15 at 14:46












          • You have two completely different problems. I have solved the main problem. The other question is too specific. Ask a new question for this problem. Please accept this answer with a click on the check mark at the left side of the answer.

            – A.B.
            Oct 30 '15 at 14:51











          • Thanks for the answer. For some reason sudo apt-get install -f keeps changing the configuration in /etc/postfix/main.cf to some invalid crap myserver.168.1.25 so install fails all time miserably. Any ideas?

            – Wtower
            Dec 30 '16 at 6:31


















          0














          first know your hostname using command : hostname



          just edit /etc/postfix/main.cf



          use:
          sudo nano /etc/postfix/main.cf



          change: myhostname =



          to



          myhostname = your_hostname (name of your hostname)



          now logout the system and re-login



          now run :



          sudo apt install -f






          share|improve this answer








          New contributor




          rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
          Check out our Code of Conduct.



















            Your Answer








            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "89"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            autoActivateHeartbeat: false,
            convertImagesToLinks: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            bindNavPrevention: true,
            postfix: "",
            imageUploader:
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            ,
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );













            draft saved

            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f691903%2ferror-during-running-newaliases%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown

























            2 Answers
            2






            active

            oldest

            votes








            2 Answers
            2






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            4















            1. Correct mydomain in /etc/postfix/main.cf.



              04 is not a valid domain name - a valid value is an entry of the tour domain.tld.




            2. Change the value for valid_hostname as well.



              This is only a warning but hostnames are not numeric - use the output of



              hostname --fqdn


            After that execute:



            sudo newaliases
            sudo apt-get install -f



            mydomain

            The internet domain name of this mail system. The default is to use
            $myhostname minus the first component, or "localdomain" (Postfix 2.3
            and later). $mydomain is used as a default value for many other
            configuration parameters.

            myhostname

            The internet hostname of this mail system. The default is to use the
            fully-qualified domain name (FQDN) from gethostname(), or to use the
            non-FQDN result from gethostname() and append ".$mydomain".$myhostname
            is used as a default value for many other configuration parameters.





            share|improve this answer

























            • Thank you. This solved the email issue. Now on to the logcheck setup.

              – Nazeem Jansen
              Oct 30 '15 at 14:36











            • I tried to test by running: sudo -u logcheck logcheck -o -t and received error: Oct 30 16:42:26 rotaderp gnome-session[2756]: Could not locate Tomboy on D-Bus. Perhaps it's not running? Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.406] [UniverseManager] Error while updating item source "Torrents": Cannot access Transmission RPC service Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.769] [UniverseManager] Error while updating item source "Firefox Places": Cannot cast from source type to destination type. Should Tomboy be installed?

              – Nazeem Jansen
              Oct 30 '15 at 14:46












            • You have two completely different problems. I have solved the main problem. The other question is too specific. Ask a new question for this problem. Please accept this answer with a click on the check mark at the left side of the answer.

              – A.B.
              Oct 30 '15 at 14:51











            • Thanks for the answer. For some reason sudo apt-get install -f keeps changing the configuration in /etc/postfix/main.cf to some invalid crap myserver.168.1.25 so install fails all time miserably. Any ideas?

              – Wtower
              Dec 30 '16 at 6:31















            4















            1. Correct mydomain in /etc/postfix/main.cf.



              04 is not a valid domain name - a valid value is an entry of the tour domain.tld.




            2. Change the value for valid_hostname as well.



              This is only a warning but hostnames are not numeric - use the output of



              hostname --fqdn


            After that execute:



            sudo newaliases
            sudo apt-get install -f



            mydomain

            The internet domain name of this mail system. The default is to use
            $myhostname minus the first component, or "localdomain" (Postfix 2.3
            and later). $mydomain is used as a default value for many other
            configuration parameters.

            myhostname

            The internet hostname of this mail system. The default is to use the
            fully-qualified domain name (FQDN) from gethostname(), or to use the
            non-FQDN result from gethostname() and append ".$mydomain".$myhostname
            is used as a default value for many other configuration parameters.





            share|improve this answer

























            • Thank you. This solved the email issue. Now on to the logcheck setup.

              – Nazeem Jansen
              Oct 30 '15 at 14:36











            • I tried to test by running: sudo -u logcheck logcheck -o -t and received error: Oct 30 16:42:26 rotaderp gnome-session[2756]: Could not locate Tomboy on D-Bus. Perhaps it's not running? Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.406] [UniverseManager] Error while updating item source "Torrents": Cannot access Transmission RPC service Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.769] [UniverseManager] Error while updating item source "Firefox Places": Cannot cast from source type to destination type. Should Tomboy be installed?

              – Nazeem Jansen
              Oct 30 '15 at 14:46












            • You have two completely different problems. I have solved the main problem. The other question is too specific. Ask a new question for this problem. Please accept this answer with a click on the check mark at the left side of the answer.

              – A.B.
              Oct 30 '15 at 14:51











            • Thanks for the answer. For some reason sudo apt-get install -f keeps changing the configuration in /etc/postfix/main.cf to some invalid crap myserver.168.1.25 so install fails all time miserably. Any ideas?

              – Wtower
              Dec 30 '16 at 6:31













            4












            4








            4








            1. Correct mydomain in /etc/postfix/main.cf.



              04 is not a valid domain name - a valid value is an entry of the tour domain.tld.




            2. Change the value for valid_hostname as well.



              This is only a warning but hostnames are not numeric - use the output of



              hostname --fqdn


            After that execute:



            sudo newaliases
            sudo apt-get install -f



            mydomain

            The internet domain name of this mail system. The default is to use
            $myhostname minus the first component, or "localdomain" (Postfix 2.3
            and later). $mydomain is used as a default value for many other
            configuration parameters.

            myhostname

            The internet hostname of this mail system. The default is to use the
            fully-qualified domain name (FQDN) from gethostname(), or to use the
            non-FQDN result from gethostname() and append ".$mydomain".$myhostname
            is used as a default value for many other configuration parameters.





            share|improve this answer
















            1. Correct mydomain in /etc/postfix/main.cf.



              04 is not a valid domain name - a valid value is an entry of the tour domain.tld.




            2. Change the value for valid_hostname as well.



              This is only a warning but hostnames are not numeric - use the output of



              hostname --fqdn


            After that execute:



            sudo newaliases
            sudo apt-get install -f



            mydomain

            The internet domain name of this mail system. The default is to use
            $myhostname minus the first component, or "localdomain" (Postfix 2.3
            and later). $mydomain is used as a default value for many other
            configuration parameters.

            myhostname

            The internet hostname of this mail system. The default is to use the
            fully-qualified domain name (FQDN) from gethostname(), or to use the
            non-FQDN result from gethostname() and append ".$mydomain".$myhostname
            is used as a default value for many other configuration parameters.






            share|improve this answer














            share|improve this answer



            share|improve this answer








            edited Oct 30 '15 at 14:55

























            answered Oct 30 '15 at 12:43









            A.B.A.B.

            69.6k12172266




            69.6k12172266












            • Thank you. This solved the email issue. Now on to the logcheck setup.

              – Nazeem Jansen
              Oct 30 '15 at 14:36











            • I tried to test by running: sudo -u logcheck logcheck -o -t and received error: Oct 30 16:42:26 rotaderp gnome-session[2756]: Could not locate Tomboy on D-Bus. Perhaps it's not running? Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.406] [UniverseManager] Error while updating item source "Torrents": Cannot access Transmission RPC service Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.769] [UniverseManager] Error while updating item source "Firefox Places": Cannot cast from source type to destination type. Should Tomboy be installed?

              – Nazeem Jansen
              Oct 30 '15 at 14:46












            • You have two completely different problems. I have solved the main problem. The other question is too specific. Ask a new question for this problem. Please accept this answer with a click on the check mark at the left side of the answer.

              – A.B.
              Oct 30 '15 at 14:51











            • Thanks for the answer. For some reason sudo apt-get install -f keeps changing the configuration in /etc/postfix/main.cf to some invalid crap myserver.168.1.25 so install fails all time miserably. Any ideas?

              – Wtower
              Dec 30 '16 at 6:31

















            • Thank you. This solved the email issue. Now on to the logcheck setup.

              – Nazeem Jansen
              Oct 30 '15 at 14:36











            • I tried to test by running: sudo -u logcheck logcheck -o -t and received error: Oct 30 16:42:26 rotaderp gnome-session[2756]: Could not locate Tomboy on D-Bus. Perhaps it's not running? Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.406] [UniverseManager] Error while updating item source "Torrents": Cannot access Transmission RPC service Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.769] [UniverseManager] Error while updating item source "Firefox Places": Cannot cast from source type to destination type. Should Tomboy be installed?

              – Nazeem Jansen
              Oct 30 '15 at 14:46












            • You have two completely different problems. I have solved the main problem. The other question is too specific. Ask a new question for this problem. Please accept this answer with a click on the check mark at the left side of the answer.

              – A.B.
              Oct 30 '15 at 14:51











            • Thanks for the answer. For some reason sudo apt-get install -f keeps changing the configuration in /etc/postfix/main.cf to some invalid crap myserver.168.1.25 so install fails all time miserably. Any ideas?

              – Wtower
              Dec 30 '16 at 6:31
















            Thank you. This solved the email issue. Now on to the logcheck setup.

            – Nazeem Jansen
            Oct 30 '15 at 14:36





            Thank you. This solved the email issue. Now on to the logcheck setup.

            – Nazeem Jansen
            Oct 30 '15 at 14:36













            I tried to test by running: sudo -u logcheck logcheck -o -t and received error: Oct 30 16:42:26 rotaderp gnome-session[2756]: Could not locate Tomboy on D-Bus. Perhaps it's not running? Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.406] [UniverseManager] Error while updating item source "Torrents": Cannot access Transmission RPC service Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.769] [UniverseManager] Error while updating item source "Firefox Places": Cannot cast from source type to destination type. Should Tomboy be installed?

            – Nazeem Jansen
            Oct 30 '15 at 14:46






            I tried to test by running: sudo -u logcheck logcheck -o -t and received error: Oct 30 16:42:26 rotaderp gnome-session[2756]: Could not locate Tomboy on D-Bus. Perhaps it's not running? Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.406] [UniverseManager] Error while updating item source "Torrents": Cannot access Transmission RPC service Oct 30 16:42:26 rotaderp gnome-session[2756]: [Error 16:42:26.769] [UniverseManager] Error while updating item source "Firefox Places": Cannot cast from source type to destination type. Should Tomboy be installed?

            – Nazeem Jansen
            Oct 30 '15 at 14:46














            You have two completely different problems. I have solved the main problem. The other question is too specific. Ask a new question for this problem. Please accept this answer with a click on the check mark at the left side of the answer.

            – A.B.
            Oct 30 '15 at 14:51





            You have two completely different problems. I have solved the main problem. The other question is too specific. Ask a new question for this problem. Please accept this answer with a click on the check mark at the left side of the answer.

            – A.B.
            Oct 30 '15 at 14:51













            Thanks for the answer. For some reason sudo apt-get install -f keeps changing the configuration in /etc/postfix/main.cf to some invalid crap myserver.168.1.25 so install fails all time miserably. Any ideas?

            – Wtower
            Dec 30 '16 at 6:31





            Thanks for the answer. For some reason sudo apt-get install -f keeps changing the configuration in /etc/postfix/main.cf to some invalid crap myserver.168.1.25 so install fails all time miserably. Any ideas?

            – Wtower
            Dec 30 '16 at 6:31













            0














            first know your hostname using command : hostname



            just edit /etc/postfix/main.cf



            use:
            sudo nano /etc/postfix/main.cf



            change: myhostname =



            to



            myhostname = your_hostname (name of your hostname)



            now logout the system and re-login



            now run :



            sudo apt install -f






            share|improve this answer








            New contributor




            rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
            Check out our Code of Conduct.
























              0














              first know your hostname using command : hostname



              just edit /etc/postfix/main.cf



              use:
              sudo nano /etc/postfix/main.cf



              change: myhostname =



              to



              myhostname = your_hostname (name of your hostname)



              now logout the system and re-login



              now run :



              sudo apt install -f






              share|improve this answer








              New contributor




              rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
              Check out our Code of Conduct.






















                0












                0








                0







                first know your hostname using command : hostname



                just edit /etc/postfix/main.cf



                use:
                sudo nano /etc/postfix/main.cf



                change: myhostname =



                to



                myhostname = your_hostname (name of your hostname)



                now logout the system and re-login



                now run :



                sudo apt install -f






                share|improve this answer








                New contributor




                rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.










                first know your hostname using command : hostname



                just edit /etc/postfix/main.cf



                use:
                sudo nano /etc/postfix/main.cf



                change: myhostname =



                to



                myhostname = your_hostname (name of your hostname)



                now logout the system and re-login



                now run :



                sudo apt install -f







                share|improve this answer








                New contributor




                rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                share|improve this answer



                share|improve this answer






                New contributor




                rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.









                answered 14 mins ago









                rishang bhavsarrishang bhavsar

                1




                1




                New contributor




                rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.





                New contributor





                rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.






                rishang bhavsar is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
                Check out our Code of Conduct.



























                    draft saved

                    draft discarded
















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid


                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.

                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f691903%2ferror-during-running-newaliases%23new-answer', 'question_page');

                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Möglingen Índice Localización Historia Demografía Referencias Enlaces externos Menú de navegación48°53′18″N 9°07′45″E / 48.888333333333, 9.129166666666748°53′18″N 9°07′45″E / 48.888333333333, 9.1291666666667Sitio web oficial Mapa de Möglingen«Gemeinden in Deutschland nach Fläche, Bevölkerung und Postleitzahl am 30.09.2016»Möglingen

                    Virtualbox - Configuration error: Querying “UUID” failed (VERR_CFGM_VALUE_NOT_FOUND)“VERR_SUPLIB_WORLD_WRITABLE” error when trying to installing OS in virtualboxVirtual Box Kernel errorFailed to open a seesion for the virtual machineFailed to open a session for the virtual machineUbuntu 14.04 LTS Virtualbox errorcan't use VM VirtualBoxusing virtualboxI can't run Linux-64 Bit on VirtualBoxUnable to insert the virtual optical disk (VBoxguestaddition) in virtual machine for ubuntu server in win 10VirtuaBox in Ubuntu 18.04 Issues with Win10.ISO Installation

                    Torre de la Isleta Índice Véase también Referencias Bibliografía Enlaces externos Menú de navegación38°25′58″N 0°23′02″O / 38.43277778, -0.3838888938°25′58″N 0°23′02″O / 38.43277778, -0.38388889Torre de la Illeta de l’Horta o Torre Saleta. Base de datos de bienes inmuebles. Patrimonio Cultural. Secretaría de Estado de CulturaFicha BIC Torre de la Illeta de l’Horta. Dirección General de Patrimonio Cultural. Generalitat ValencianaLugares de interés. Ayuntamiento del CampelloTorre de la Isleta en CastillosNet.org