Find the answer to your Linux question:
Page 3 of 4 FirstFirst 1 2 3 4 LastLast
Results 21 to 30 of 33
centos might not split up the log file then. how about Code: tail /var/log/mail.log if that still doesn't work then try Code: ls /var/log/mail* and see what files you do ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #21
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077

    centos might not split up the log file then. how about
    Code:
    tail /var/log/mail.log
    if that still doesn't work then try
    Code:
    ls /var/log/mail*
    and see what files you do have. I didn't see any real problems with your main.cf is why I want to see logs.

  2. #22
    Just Joined!
    Join Date
    Apr 2008
    Posts
    24
    Code:
    # tail /var/log/mail.log
    tail: cannot open `/var/log/mail.log' for reading: No such file or directory
    [root@chromacars postfix]# ls /var/log/mail*
    /var/log/maillog  /var/log/maillog.1  /var/log/maillog.2
    
    /var/log/mail:
    statistics

  3. #23
    Just Joined!
    Join Date
    Apr 2008
    Posts
    24
    Code:
    # tail /var/log/maillog
    Jun 11 13:11:57 chromacars sendmail[29351]: alias database /etc/aliases rebuilt by raul
    Jun 11 13:11:57 chromacars sendmail[29351]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
    Jun 11 13:11:57 chromacars postfix[29352]: fatal: chdir(/usr/libexec/postfix inet_interfaces = all inet_interfaces = localhost): No such file or directory
    Jun 11 13:13:12 chromacars postfix[29400]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 11 13:13:13 chromacars sendmail[29402]: alias database /etc/aliases rebuilt by raul
    Jun 11 13:13:13 chromacars sendmail[29402]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
    Jun 11 13:13:13 chromacars postfix[29403]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 11 14:00:47 chromacars sendmail[29812]: alias database /etc/aliases rebuilt by raul
    Jun 11 14:00:47 chromacars sendmail[29812]: /etc/aliases: 76 aliases, longest 10 bytes, 765 bytes total
    Jun 11 14:00:47 chromacars postfix[29813]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory

  4. $spacer_open
    $spacer_close
  5. #24
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    is sendmail still installed?

    Code:
    rpm -e sendmail
    I think

  6. #25
    Just Joined!
    Join Date
    Apr 2008
    Posts
    24
    Code:
    rpm -e sendmail
    error: Failed dependencies:
            sendmail = 8.13.8-2.el5 is needed by (installed) sendmail-cf-8.13.8-2.el5.i386
    Thats wierd I swore I had it installed or am I wrong about this?
    I just checked in webmin and it says the sendmail server is running.
    I also did a yum update for sendmail and I have the latest updates

    Code:
    # yum install sendmail
    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    extras                    100% |=========================| 1.1 kB    00:00
    updates                   100% |=========================|  951 B    00:00
    base                      100% |=========================| 1.1 kB    00:00
    addons                    100% |=========================|  951 B    00:00
    Reading repository metadata in from local files
    Parsing package install arguments
    Nothing to do

  7. #26
    Just Joined!
    Join Date
    Apr 2008
    Posts
    24
    Now webmin seems to think something is wrong with the mapping and told me to fix this

    Code:
    #
    #  Aliases in this file will NOT be expanded in the header from
    #  Mail, but WILL be visible over networks or from /bin/mail.
    #
    #	>>>>>>>>>>	The program "newaliases" must be run after
    #	>> NOTE >>	this file is updated for any changes to
    #	>>>>>>>>>>	show through to sendmail.
    #
    
    # Basic system aliases -- these MUST be present.
    mailer-daemon:	postmaster
    postmaster:	root
    
    # General redirections for pseudo accounts.
    bin:		root
    daemon:		root
    adm:		root
    lp:		root
    sync:		root
    shutdown:	root
    halt:		root
    mail:		root
    news:		root
    uucp:		root
    operator:	root
    games:		root
    gopher:		root
    ftp:		root
    nobody:		root
    radiusd:	root
    nut:		root
    dbus:		root
    vcsa:		root
    canna:		root
    wnn:		root
    rpm:		root
    nscd:		root
    pcap:		root
    apache:		root
    webalizer:	root
    dovecot:	root
    fax:		root
    quagga:		root
    radvd:		root
    pvm:		root
    amanda:		root
    privoxy:	root
    ident:		root
    named:		root
    xfs:		root
    gdm:		root
    mailnull:	root
    postgres:	root
    sshd:		root
    smmsp:		root
    postfix:	root
    netdump:	root
    ldap:		root
    squid:		root
    ntp:		root
    mysql:		root
    desktop:	root
    rpcuser:	root
    rpc:		root
    nfsnobody:	root
    
    ingres:		root
    system:		root
    toor:		root
    manager:	root
    dumper:		root
    abuse:		root
    
    newsadm:	news
    newsadmin:	news
    usenet:		news
    ftpadm:		ftp
    ftpadmin:	ftp
    ftp-adm:	ftp
    ftp-admin:	ftp
    www:		webmaster
    webmaster:	root
    noc:		root
    security:	root
    hostmaster:	root
    info:		postmaster
    marketing:	postmaster
    sales:		postmaster
    support:	postmaster
    
    
    # trap decode to catch security attacks
    decode:		root
    
    # Person who should get root's mail
    #root:		marc

  8. #27
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    rpm -e means uninstall

    sendmail=MTA
    postfix=MTA

    your don't want both. so if you are going to use postfix, uninstall sendmail.

    Code:
    /etc/init.d/sendmail stop
    
    rpm -e sendmail-cf
    rpm -e sendmail
    
    /etc/init.d/postfix stop
    /etc/init.d/postfix start
    
    tail /var/log/maillog

  9. #28
    Just Joined!
    Join Date
    Apr 2008
    Posts
    24
    ok i stoped sendmail but I cant get postfix to start or stop now

    Code:
    # /etc/init.d/postfix stop
    Shutting down postfix:                                     [FAILED]
    [root@chromacars raul]# /etc/init.d/postfix start
    Starting postfix:                                          [FAILED]
    [root@chromacars raul]# tail /var/log/maillog
    Jun 12 04:02:03 chromacars sendmail[4972]: m5C822Wf004972: from=root, size=1956, class=0, nrcpts=1, msgid=<200806120802.m5C822Wf004972@chromacars.net>, relay=root@localhost
    Jun 12 04:02:03 chromacars sendmail[5220]: m5C823gZ005220: from=<root@chromacars.net>, size=2208, class=0, nrcpts=1, msgid=<200806120802.m5C822Wf004972@chromacars.net>, proto=ESMTP, daemon=MTA, relay=chromacars.net [127.0.0.1]
    Jun 12 04:02:03 chromacars sendmail[4972]: m5C822Wf004972: to=root, ctladdr=root (0/0), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=31956, relay=[127.0.0.1] [127.0.0.1], dsn=2.0.0, stat=Sent (m5C823gZ005220 Message accepted for delivery)
    Jun 12 04:02:03 chromacars sendmail[5223]: m5C823gZ005220: to=<root@chromacars.net>, ctladdr=<root@chromacars.net> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=32414, dsn=2.0.0, stat=Sent
    Jun 12 11:11:03 chromacars postfix[9229]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 11:11:04 chromacars postfix[9231]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 11:13:49 chromacars postfix[9443]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 11:13:50 chromacars postfix[9445]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 13:31:28 chromacars postfix[10677]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    Jun 12 13:31:37 chromacars postfix[10685]: fatal: chdir(/usr/libexec/postfix inet_interfaces = localhost): No such file or directory
    [root@chromacars raul]#

  10. #29
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    this sounds like your install is messed up, how did you install postfix?

    I would suggest
    Code:
    rpm -e postfix
    rm -rf /etc/postfix
    OR to be safe
    mv /etc/postfix /etc/postfix.backup
    it should also remove startup script but
    Code:
    rm /etc/init.d/postfix
    probably couldn't hurt. then
    Code:
    yum install postfix
    and then try to start it up again

  11. #30
    Just Joined!
    Join Date
    Apr 2008
    Posts
    24
    I had used webmin to install it i believe
    when i did a

    # yum install postfix
    Loading "installonlyn" plugin
    Setting up Install Process
    Setting up repositories
    extras 100&#37; |=========================| 1.1 kB 00:00
    updates 100% |=========================| 951 B 00:00
    base 100% |=========================| 1.1 kB 00:00
    addons 951 B 00:00
    Reading repository metadata in from local files
    Parsing package install arguments
    Nothing to do



    Thats wierd it wont let me download or update it. I did a general yum update and got the same thing.

Page 3 of 4 FirstFirst 1 2 3 4 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •