reinstall of centos 5 (cat /etc/postfix/main.cf)

Discussion in 'HOWTO-Related Questions' started by cruz, Apr 25, 2007.

  1. cruz

    cruz New Member

    When I checked the main.cf file. I am missing all of this. Am I supose to enter this?
    HTML:
    queue_directory = /var/spool/postfix
    command_directory = /usr/sbin
    daemon_directory = /usr/libexec/postfix
    mail_owner = postfix
    inet_interfaces = all
    mydestination = $myhostname, localhost.$mydomain, localhost
    unknown_local_recipient_reject_code = 550
    alias_maps = hash:/etc/aliases
    alias_database = hash:/etc/aliases
    
    I went by the directions. I had to enter the key phraise a few times. For some reason it will not take it. then it WILL take it. whats up with that? I know I am typing the corect phrase twice. I am SURE i am tping it corect. Well, after a few trys it takes the phrase and all is welll (I Hope). thank you for all the hard work you people give.
     
  2. falko

    falko Super Moderator Howtoforge Staff

    Yes. Restart Postfix afterwards.
    This probably means you're not typing in two identical passwords (or are there any special characters in your passwords?).
     
  3. cruz

    cruz New Member

    Changing the main.cf file

    I tryed to add the lines that are not in the main.cf file. vi /etc/postfix/main.cf
    But it would not let me incert any text. the page is blank. but if I move up I can see the contence of the file, but can not enter text affter entering the i command. can you tell me what I am doing wrong?
     
  4. falko

    falko Super Moderator Howtoforge Staff

  5. cruz

    cruz New Member

    enterting text in the main.cf

    I was trying to open the file from the postfix dir. vi /main.cf. I guess you can not do that. I opened it with cat and can see everything. I opened it with vi an I get a
    HTML:
    [root@server1 ~]# vi /etc/postfix/main.cf
    # Global Postfix configuration file. This file lists only a subset
    # of all parameters. For the syntax, and for a complete parameter
    # list, see the postconf(5) manual page (command: "man 5 postconf").
    #
    # For common configuration examples, see BASIC_CONFIGURATION_README
    # and STANDARD_CONFIGURATION_README. To find these documents, use
    # the command "postconf html_directory readme_directory", or go to
    # http://www.postfix.org/.
    #
    # For best results, change no more than 2-3 parameters at a time,
    # and test if Postfix still works after every change.
    
    # SOFT BOUNCE
    #
    # The soft_bounce parameter provides a limited safety net for
    # testing.  When soft_bounce is enabled, mail will remain queued that
    # would otherwise bounce. This parameter disables locally-generated
    # bounces, and prevents the SMTP server from rejecting mail permanently
    # (by changing 5xx replies into 4xx replies). However, soft_bounce
    # is no cure for address rewriting mistakes or mail routing mistakes.
    #
    #soft_bounce = no
    
    "/etc/postfix/main.cf" 688L, 27468C
    
    Why will it not allow me to enter the text I need to enter? Why was it not in there in the first place? I followed the steps. Linux sure is diffrent. Don't mind me, I just trying to figure out why things happen.
     
  6. Hans

    Hans Moderator Moderator

    Maybe you do not have permissions.
    Did you login into the server as root?
     
  7. cruz

    cruz New Member

    Root

    Yes I used putty and logged in as root
     
  8. cruz

    cruz New Member

    lines missing in main.cf

    Can someone please help me and let me know how to enter the lines that are not in my main.cf file? I am sure without these links, the mail will not work correct.
     
  9. falko

    falko Super Moderator Howtoforge Staff

    Did you scroll down to the end of the file?
    Did you read http://www.howtoforge.com/faq/12_15_en.html ? It shows you how to use vi.
     
  10. cruz

    cruz New Member

    vi use

    I can not enter a doc with the i command and backspace and remove text. then hit esc then shift :wq to save changes? That is what I have been doing. Maybe that is why my installs are not working.
     
  11. cruz

    cruz New Member

    I understand now about LARGE files

    Now I understand about moving around in LARGE files. Thanks for the info. I read a bit and figured out how to arrow down the the place I wanted to edit. I still need to know if I am editing the files wrong using the way I stated above. thanks everyone for helping me. I am a bit slow at times. But I am beginning to like Linux.
     
  12. falko

    falko Super Moderator Howtoforge Staff

    Maybe you should practice a little bit with dummy files so that you get a feeling for vi. :)
     

Share This Page