Professional Web Applications Themes

Postfix - Help on configuration - Linux Setup, Configuration & Administration

Hi everybody, I want configure Postfix on my server. I already installed, but if I want test it by sending a mail to myself. It not working. I can see my email into mail queue. It's into spool/postfix/active directory I send all information that I got, may be somebody can help me. I wasted 2 weeks on that... I use Mandrake 9.1 Thanks! Please send me your answer at [email]jlvillsympatico.ca[/email] ======== [rootdummysites jlvill]# mail jlvill Subject: Test this is a test .. Cc: ========= [rootdummysites jlvill]# mail No mail for jlvill ========= [rootdummysites jlvill]# mailq -Queue ID- --Size-- ----Arrival Time---- ...

  1. #1

    Default Postfix - Help on configuration

    Hi everybody,

    I want configure Postfix on my server. I already installed, but if I
    want test it by sending a mail to myself. It not working.

    I can see my email into mail queue. It's into spool/postfix/active directory

    I send all information that I got, may be somebody can help me. I wasted
    2 weeks on that...

    I use Mandrake 9.1

    Thanks!
    Please send me your answer at [email]jlvillsympatico.ca[/email]

    ========

    [rootdummysites jlvill]# mail jlvill
    Subject: Test
    this is a test
    ..
    Cc:

    =========

    [rootdummysites jlvill]# mail
    No mail for jlvill

    =========

    [rootdummysites jlvill]# mailq
    -Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-----

    6CCE01C98E* 1328 Sat Aug 16 04:10:05 [email]rootlocal.dummysites.com[/email]
    [email]jlvilllocal.dummysites.com[/email]

    ========= This is my main.cf


    [rootdummysites jlvill]# postconf -n
    alias_database = hash:/etc/postfix/aliases
    alias_maps = hash:/etc/postfix/aliases
    command_directory = /usr/sbin
    config_directory = /etc/postfix
    daemon_directory = /usr/lib/postfix
    debug_peer_level = 2
    delay_warning_time = 4
    inet_interfaces = all
    mail_owner = postfix
    mail_spool_directory = /var/spool/mail
    mailbox_command = /usr/bin/procmail -Y -a $DOMAIN
    mailq_path = /usr/bin/mailq.postfix
    manpage_directory = /usr/share/man
    mydestination = $myhostname, localhost.$mydomain
    myhostname = local.dummysites.com
    newaliases_path = /usr/bin/newaliases.postfix
    queue_directory = /var/spool/postfix
    readme_directory = /usr/share/doc/postfix-2.0.6/README_FILES
    sample_directory = /usr/share/doc/postfix-2.0.6/samples
    sendmail_path = /usr/sbin/sendmail.postfix
    setgid_group = postdrop
    smtpd_banner = $myhostname ESMTP $mail_name ($mail_version) (Mandrake Linux)
    unknown_local_recipient_reject_code = 450

    ======== This is the spool/postfix/active/6/6CCE01C98E file (my email in
    active directory)
    C/ 1328 179 1T
    1061021405Amessage_origin=localSrootlocal.dummy sites.comOjlvillRjlvilllocal.dummysites.comW
    1061035805M 1507N9Received: by local.dummysites.com
    (Postfix, from userid 0)N5 id 6CCE01C98E; Sat, 16 Aug 2003 04:10:05
    -0400 (EDT)NTo: [email]jlvilllocal.dummysites.comN[/email]QSubject: [msec] *** Diff
    Check on dummysites.com, Sat Aug 16 04:10:04 EDT 2003 ***N;Message-Id:
    <20030816081005.6CCE01C98Elocal.dummysites.com>N+ Date: Sat, 16 Aug 2003
    04:10:05 -0400 (EDT)N%From: [email]rootlocal.dummysites.com[/email] (root)NNNSecurity
    Warning: There are modifications for port listening on your machine
    :Nj - Opened ports : tcp 0 0 *:sunrpc *:*
    LISTEN 16334/Nj - Opened ports : tcp 0
    0 *:smtp *:* LISTEN
    19935/Nn - Opened ports : udp 0 0 *:who
    *:* 5510/rwhodNj - Opened ports : udp
    0 0 *:sunrpc *:*
    16334/Nj - Closed ports : tcp 0 0 *:sunrpc
    *:* LISTEN 20102/Nh - Closed ports :
    tcp 0 0 localhost.localdom:smtp *:*
    LISTEN 931/Nn - Closed ports : udp 0 0 *:who
    *:* 3535/rwhodNj - Closed
    ports : udp 0 0 *:sunrpc *:*
    20102/Xrerootlocal.dummysites.comE

    ============ Warning file
    Aug 16 01:19:31 dummysites postfix/postqueue[17214]: warning: Mail
    system is down -- accessing queue directly
    Aug 16 01:23:04 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 8184 exit status 1
    Aug 16 01:23:04 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:24:05 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 18644 exit status 1
    Aug 16 01:24:05 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:25:06 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 5171 exit status 1
    Aug 16 01:25:06 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:26:07 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 3741 exit status 1
    Aug 16 01:26:07 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:27:08 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 20323 exit status 1
    Aug 16 01:27:08 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:28:09 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 12148 exit status 1
    Aug 16 01:28:09 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:29:10 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 7459 exit status 1
    Aug 16 01:29:10 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:30:11 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 20393 exit status 1
    Aug 16 01:30:11 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:31:12 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 16195 exit status 1
    Aug 16 01:31:12 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:32:13 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 29751 exit status 1
    Aug 16 01:32:13 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:33:14 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 22072 exit status 1
    Aug 16 01:33:14 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:34:15 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 10488 exit status 1
    Aug 16 01:34:15 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:35:16 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 386 exit status 1
    Aug 16 01:35:16 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:36:17 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 31087 exit status 1
    Aug 16 01:36:17 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:37:18 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 10487 exit status 1
    Aug 16 01:37:18 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:38:19 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 11081 exit status 1
    Aug 16 01:38:19 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling
    Aug 16 01:39:20 dummysites postfix/master[19935]: warning: process
    /usr/lib/postfix/local pid 9492 exit status 1
    Aug 16 01:39:20 dummysites postfix/master[19935]: warning:
    /usr/lib/postfix/local: bad command startup -- throttling

    ============ Error file
    Aug 16 01:24:04 dummysites postfix/local[18644]: fatal: open database
    /etc/postfix/aliases.db: No such file or directory
    Aug 16 01:25:05 dummysites postfix/local[5171]: fatal: open database
    /etc/postfix/aliases.db: No such file or directory
    Aug 16 01:26:06 dummysites postfix/local[3741]: fatal: open database
    /etc/postfix/aliases.db: No such file or directory
    Aug 16 01:27:07 dummysites postfix/local[20323]: fatal: open database
    /etc/postfix/aliases.db: No such file or directory

    ============ Info file
    Aug 16 04:10:05 dummysites postfix/pickup[2599]: 6CCE01C98E: uid=0
    from=<root>
    Aug 16 04:10:05 dummysites postfix/cleanup[17104]: 6CCE01C98E:
    message-id=<20030816081005.6CCE01C98Elocal.dummysites.com >
    Aug 16 04:10:06 dummysites postfix/nqmgr[7010]: 6CCE01C98E:
    from=<rootlocal.dummysites.com>, size=1328, nrcpt=1 (queue active)
    Aug 16 06:23:03 dummysites postfix/nqmgr[30557]: 6CCE01C98E:
    from=<rootlocal.dummysites.com>, size=1328, nrcpt=1 (queue active)
    Aug 16 11:28:02 dummysites postfix/nqmgr[5600]: 6CCE01C98E:
    from=<rootlocal.dummysites.com>, size=1328, nrcpt=1 (queue active)
    Aug 16 16:28:03 dummysites postfix/nqmgr[29759]: 6CCE01C98E:
    from=<rootlocal.dummysites.com>, size=1328, nrcpt=1 (queue active)
    Aug 16 21:33:02 dummysites postfix/nqmgr[31308]: 6CCE01C98E:
    from=<rootlocal.dummysites.com>, size=1328, nrcpt=1 (queue active)

    Jean-Louis Vill Guest

  2. #2

    Default Re: Postfix - Help on configuration

    On Sun, 17 Aug 2003 00:47:07 -0400, Jean-Louis Vill wrote:
    > Hi everybody,
    >
    > I want configure Postfix on my server. I already installed, but if I
    > want test it by sending a mail to myself. It not working.
    Looking at your errors I would try using the MD software manager to
    uninstall postfix and install postfix because of the alias.db error
    and to have a clean starting point.

    Also allows you to make copies of the original files to compare
    against and allows you to see what changes you made to what file.
    Your call on the clean install suggestion..

    Maybe you can use postmap to make aliases.db or maybe just a link problem.

    ls -al /etc/aliases
    lrwxrwxrwx 1 root root /etc/aliases -> /etc/alternatives/mta-etc_aliases

    ls -al /etc/alternatives/mta-etc_aliases
    lrwxrwxrwx 1 root root /etc/alternatives/mta-etc_aliases ->
    /etc/postfix/aliases


    To get mine to work I made just a few changes and added one line to
    main.cf and alias to send my email through my isp.

    Downside is messages to root are rerouted to bittwister in aliases.
    Then sender_canonical maps messages from bittwister to my isp
    email address and I see it when I check my isp email.

    Here is a difference listing of main.cf to show my changes
    diff legend:
    lines with > is the before change. line
    lines with < is the after change. line
    lines with numbers contain the line and character location of changes.



    diff -bBw main.cf main.cf_orig
    68d67
    < myhostname = wb.home
    77d75
    < mydomain = home
    306c304
    < relayhost = smtp.comcast.net
    ---
    > #relayhost = gateway.my.domain
    348d345
    < sender_canonical_maps = hash:/etc/postfix/sender_canonical

    ---------------------------------------------
    sender_canonical_maps is used to convert my LAN login to my ISP
    email name because some MTAs check with my relayhost to verify
    the Return-Path email account is valid.

    cat sender_canonical
    bittwister [email]my_email_addycomcast.net[/email]

    ---------------------------------------------
    diff -bBw aliases aliases_orig
    80,81c80
    < root: bittwister
    <
    ---
    > root: postfix
    If you change aliases you need to create the aliases.db with postmap
    Same with sender_canonical_maps

    After I change anything I do a
    postfix stop
    cp /dev/null /var/log/mail/errors
    cp /dev/null /var/log/mail/info
    cp /dev/null /var/log/mail/warnings
    cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
    postfix start

    and check the /var/log/mail/* logs

    The cp /var/spool/postfix/etc/resolv.conf is because I am on dhcp
    from my isp and the spool copy needs to match the /etc copy.

    You might find some help in the debug file found with
    locate -i postfix | grep -i doc | grep -i debug

    You then cut/paste something like
    /usr/share/doc/postfix-2.0.6/README_FILES/DEBUG_README
    into your browser.

    Bit Twister Guest

  3. #3

    Default Re: Postfix - Help on configuration

    Hi Twister,
    Tanks a lot!
    I will check that and I'll give you a feed back!



    Bit Twister wrote:
    > On Sun, 17 Aug 2003 00:47:07 -0400, Jean-Louis Vill wrote:
    >
    >>Hi everybody,
    >>
    >>I want configure Postfix on my server. I already installed, but if I
    >>want test it by sending a mail to myself. It not working.
    >
    >
    > Looking at your errors I would try using the MD software manager to
    > uninstall postfix and install postfix because of the alias.db error
    > and to have a clean starting point.
    >
    > Also allows you to make copies of the original files to compare
    > against and allows you to see what changes you made to what file.
    > Your call on the clean install suggestion..
    >
    > Maybe you can use postmap to make aliases.db or maybe just a link problem.
    >
    > ls -al /etc/aliases
    > lrwxrwxrwx 1 root root /etc/aliases -> /etc/alternatives/mta-etc_aliases
    >
    > ls -al /etc/alternatives/mta-etc_aliases
    > lrwxrwxrwx 1 root root /etc/alternatives/mta-etc_aliases ->
    > /etc/postfix/aliases
    >
    >
    > To get mine to work I made just a few changes and added one line to
    > main.cf and alias to send my email through my isp.
    >
    > Downside is messages to root are rerouted to bittwister in aliases.
    > Then sender_canonical maps messages from bittwister to my isp
    > email address and I see it when I check my isp email.
    >
    > Here is a difference listing of main.cf to show my changes
    > diff legend:
    > lines with > is the before change. line
    > lines with < is the after change. line
    > lines with numbers contain the line and character location of changes.
    >
    >
    >
    > diff -bBw main.cf main.cf_orig
    > 68d67
    > < myhostname = wb.home
    > 77d75
    > < mydomain = home
    > 306c304
    > < relayhost = smtp.comcast.net
    > ---
    >
    >>#relayhost = gateway.my.domain
    >
    > 348d345
    > < sender_canonical_maps = hash:/etc/postfix/sender_canonical
    >
    > ---------------------------------------------
    > sender_canonical_maps is used to convert my LAN login to my ISP
    > email name because some MTAs check with my relayhost to verify
    > the Return-Path email account is valid.
    >
    > cat sender_canonical
    > bittwister [email]my_email_addycomcast.net[/email]
    >
    > ---------------------------------------------
    > diff -bBw aliases aliases_orig
    > 80,81c80
    > < root: bittwister
    > <
    > ---
    >
    >>root: postfix
    >
    >
    > If you change aliases you need to create the aliases.db with postmap
    > Same with sender_canonical_maps
    >
    > After I change anything I do a
    > postfix stop
    > cp /dev/null /var/log/mail/errors
    > cp /dev/null /var/log/mail/info
    > cp /dev/null /var/log/mail/warnings
    > cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
    > postfix start
    >
    > and check the /var/log/mail/* logs
    >
    > The cp /var/spool/postfix/etc/resolv.conf is because I am on dhcp
    > from my isp and the spool copy needs to match the /etc copy.
    >
    > You might find some help in the debug file found with
    > locate -i postfix | grep -i doc | grep -i debug
    >
    > You then cut/paste something like
    > /usr/share/doc/postfix-2.0.6/README_FILES/DEBUG_README
    > into your browser.
    >
    Jean-Louis Vill Guest

  4. #4

    Default Re: Postfix - Help on configuration

    just testing to see if my mail setup thing works all good...


    "Bit Twister" <localdomain> wrote in message
    news:home... 
    >
    > Looking at your errors I would try using the MD software manager to
    > uninstall postfix and install postfix because of the alias.db error
    > and to have a clean starting point.
    >
    > Also allows you to make copies of the original files to compare
    > against and allows you to see what changes you made to what file.
    > Your call on the clean install suggestion..
    >
    > Maybe you can use postmap to make aliases.db or maybe just a link problem.
    >
    > ls -al /etc/aliases
    > lrwxrwxrwx 1 root root /etc/aliases -> /etc/alternatives/mta-etc_aliases
    >
    > ls -al /etc/alternatives/mta-etc_aliases
    > lrwxrwxrwx 1 root root /etc/alternatives/mta-etc_aliases ->
    > /etc/postfix/aliases
    >
    >
    > To get mine to work I made just a few changes and added one line to
    > main.cf and alias to send my email through my isp.
    >
    > Downside is messages to root are rerouted to bittwister in aliases.
    > Then sender_canonical maps messages from bittwister to my isp
    > email address and I see it when I check my isp email.
    >
    > Here is a difference listing of main.cf to show my changes
    > diff legend:
    > lines with > is the before change. line
    > lines with < is the after change. line
    > lines with numbers contain the line and character location of[/ref]
    changes. 
    > 348d345
    > < sender_canonical_maps = hash:/etc/postfix/sender_canonical
    >
    > ---------------------------------------------
    > sender_canonical_maps is used to convert my LAN login to my ISP
    > email name because some MTAs check with my relayhost to verify
    > the Return-Path email account is valid.
    >
    > cat sender_canonical
    > bittwister net
    >
    > ---------------------------------------------
    > diff -bBw aliases aliases_orig
    > 80,81c80
    > < root: bittwister
    > <
    > --- 
    >
    > If you change aliases you need to create the aliases.db with postmap
    > Same with sender_canonical_maps
    >
    > After I change anything I do a
    > postfix stop
    > cp /dev/null /var/log/mail/errors
    > cp /dev/null /var/log/mail/info
    > cp /dev/null /var/log/mail/warnings
    > cp /etc/resolv.conf /var/spool/postfix/etc/resolv.conf
    > postfix start
    >
    > and check the /var/log/mail/* logs
    >
    > The cp /var/spool/postfix/etc/resolv.conf is because I am on dhcp
    > from my isp and the spool copy needs to match the /etc copy.
    >
    > You might find some help in the debug file found with
    > locate -i postfix | grep -i doc | grep -i debug
    >
    > You then cut/paste something like
    > /usr/share/doc/postfix-2.0.6/README_FILES/DEBUG_README
    > into your browser.
    >[/ref]


    Tim Guest

  5. #5

    Default Re: Postfix - Help on configuration

    Tim Strong wrote:
     

    next time, use one of the over 400 *.test newsgroups
    ..
    --
    /// Michael J. Tobler: motorcyclist, surfer, skydiver, \\\
    \\\ and author: "Inside Linux", "C++ HowTo", "C++ Unleashed" ///
    \\\ http://pages.sbcglobal.net/mtobler/mjt_linux_page.html ///
    There *__ is* intelligent life on Earth, but I leave for Florida on Monday.

    mjt Guest

Similar Threads

  1. Postfix - Help on configuratio
    By Jean-Louis Vill in forum Linux Setup, Configuration & Administration
    Replies: 0
    Last Post: August 22nd, 05:09 AM
  2. Postfix
    By Florian Ernst in forum Debian
    Replies: 1
    Last Post: July 30th, 12:20 AM
  3. exim, postfix or qmail?
    By David Fokkema in forum Debian
    Replies: 0
    Last Post: July 8th, 11:40 AM
  4. postfix: ignoring certain uids?
    By Georg Schwarz in forum Linux / Unix Administration
    Replies: 0
    Last Post: July 6th, 02:57 PM
  5. How do you creat an alias in postfix.
    By Marino Fernandez in forum Debian
    Replies: 4
    Last Post: July 3rd, 06:00 PM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139