LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-19-2003, 03:40 PM   #1
gruger
Member
 
Registered: May 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 51

Rep: Reputation: 15
help with main.cf


Hello guys,

can you please review my main.cf and see that there are some changes to be made.

The problem is that I want to setup my own mailserver, this seems to work, its set up but....

When I send a mail to my account at work I do receive it but when I do a reply on that mail it never comes on to my mailserver, then after a day the postmaster of my emailserver at work sends al warning mail that my reply is delayed...

sending internal mails seems to work also just like sending to the outside world... also seems my port 25 blokt...

here is the main.cf file I use

# QUEUE DIR ( where incoming mail is q't)
queue_directory = /var/spool/postfix

# PROGRAM DIR ( program bins are set )
program_directory = /usr/libexec/postfix

# COMMAND DIR ( location of postfix commands )
command_directory = /usr/sbin

# DAEMON DIR ( location of all daemon programs )
daemon_directory = /usr/libexec/postfix

# QUEUE AND PROCESS OWNERSHIP ( Specify the name of a user
# account THAT DOES NOT SHARE A GROUP WITH OTHER ACCOUNTS AND THAT
# OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM )
mail_owner = postfix

# DEFAULT PRIV PARAMETERS ( DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER)
default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES ( Fully Qualified Domain Name (FQDN) for you machine.)
myhostname = rabbit.homelinux.org
#myhostname = virtual.domain.name
mydomain = homelinux.org

# SENDING MAIL ( Specifies the domain that post are coming from? )
myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL ( Where postfix listens on )
inet_interfaces = all
mydestination = $myhostname, localhost.$mydomain ;$mydomain

# INTERNET VERSUS INTRANET

#relayhost = $mydomain
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [mail.$mydomain:9999]

# DEFAULT TRANSPORT
default_transport = smtp

# ADDRESS REWRITING
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases

# DELIVERED-TO
# prepend_delivered_header = command, file, forward
# prepend_delivered_header = forward

# ADDRESS EXTENSIONS (e.g., user+foo)
# recipient_delimiter = +

# DELIVERY TO MAILBOX
#home_mailbox = Mailbox
#home_mailbox = Maildir/
# mail_spool_directory = /var/mail
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
mailbox_transport = cyrus
#fallback_transport =

# RELAY DOMAINS
#relay_domains = $mydestination, $virtual_maps
#relay_domains = $mydestination, /etc/postfix/relay-domains

#In this example the domains you want to relay for would be placed in the file /etc/postfix/relay-domains. One to a line like so:
# here.com
# mail.here.com
# there.org
# mail.there.org

# SHOW SOFTWARE VERSION OR NOT
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10

# DEBUGING CONTROL ( Debug level )
debug_peer_level = 2
# debug_peer_list = 127.0.0.1
# debug_peer_list = some.domain
debugger_command =
PATH=/usr/bin:/usr/X11R6/bin
xxgdb $daemon_directory/$process_name $process_id & sleep 5

# Other configurable parameters.
# NONE

 
Old 06-19-2003, 04:10 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
<dns_nag> How about doing a 'dig -t MX your.domain' and make sure that your mail server actually shows up.

If that's configured correctly then the next step would be to look in the postfix mail logs and see why mail is being rejected.
 
Old 06-20-2003, 07:38 PM   #3
gruger
Member
 
Registered: May 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 51

Original Poster
Rep: Reputation: 15
I really need some help here guys,

I got so many errors that Im really down and soon my mailserver will go also because I am tyred of these problems

Any advice on this is really appreciated...



Jun 22 01:28:20 rabbit postfix/postfix-script: warning: /var/spool/postfix/etc/localtime and /etc/localtime differ
Jun 22 01:28:20 rabbit postfix/postfix-script: starting the Postfix mail system
Jun 22 01:28:20 rabbit postfix/master[2281]: daemon started
Jun 21 19:28:21 rabbit postfix/nqmgr[2285]: 278E010C9D: from=<rikke@rabbit.homelinux.org>, size=589, nrcpt=1 (queue active)
Jun 22 01:29:12 rabbit sendmail[2290]: h5LNTCVD002290: from=root, size=69, class=0, nrcpts=1, msgid=<200306212329.h5LNTCVD002290@rabbit.homelinux.org>, relay=root@localhost
Jun 22 01:29:12 rabbit sendmail[2292]: h5LNTCIA002292: from=<root@rabbit.homelinux.org>, size=372, class=0, nrcpts=1, msgid=<200306212329.h5LNTCVD002290@rabbit.homelinux.org>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] (may be forged)
Jun 22 01:29:12 rabbit sendmail[2290]: h5LNTCVD002290: to=rikke@rabbit.homelinux.org, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30046, relay=localhost.homelinux.org. [127.0.0.1], dsn=2.0.0, stat=Sent (h5LNTCIA002292 Message accepted for delivery)
Jun 22 01:29:12 rabbit sendmail[2293]: h5LNTCIA002292: to=<rikke@rabbit.homelinux.org>, ctladdr=<root@rabbit.homelinux.org> (0/0), delay=00:00:00, xdelay=00:00:00, mailer=local, pri=30611, dsn=2.0.0, stat=Sent
Jun 22 01:29:48 rabbit sendmail[2296]: h5LNTmnQ002296: from=root, size=75, class=0, nrcpts=1, msgid=<200306212329.h5LNTmnQ002296@rabbit.homelinux.org>, relay=root@localhost
Jun 22 01:29:48 rabbit sendmail[2298]: h5LNTmIA002298: from=<root@rabbit.homelinux.org>, size=368, class=0, nrcpts=1, msgid=<200306212329.h5LNTmnQ002296@rabbit.homelinux.org>, proto=ESMTP, daemon=MTA, relay=localhost [127.0.0.1] (may be forged)
Jun 22 01:29:48 rabbit sendmail[2296]: h5LNTmnQ002296: to=rikke1@skynet.be, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30036, relay=localhost.homelinux.org. [127.0.0.1], dsn=2.0.0, stat=Sent (h5LNTmIA002298 Message accepted for delivery)
Jun 22 01:29:49 rabbit sendmail[2300]: h5LNTmIA002298: to=<rikke1@skynet.be>, ctladdr=<root@rabbit.homelinux.org> (0/0), delay=00:00:01, xdelay=00:00:01, mailer=esmtp, pri=30329, relay=in.mx.skynet.be. [195.238.3.129], dsn=2.0.0, stat=Sent (h5KNTRYZ031565 Message accepted for delivery)
Jun 21 19:31:30 rabbit postfix/smtp[2287]: connect to 139.149-201-80.adsl.skynet.be[80.201.149.139]: Connection timed out (port 25)
Jun 21 19:31:30 rabbit postfix/smtp[2287]: 278E010C9D: to=<rikke@139.149-201-80.adsl.skynet.be>, relay=none, delay=435531, status=deferred (connect to 139.149-201-80.adsl.skynet.be[80.201.149.139]: Connection timed out)
Jun 21 19:31:30 rabbit postfix/nqmgr[2285]: 278E010C9D: from=<rikke@rabbit.homelinux.org>, status=expired, returned to sender
Jun 21 19:31:30 rabbit postfix/cleanup[2322]: D552910D5B: message-id=<20030621233130.D552910D5B@rabbit.homelinux.org>
Jun 21 19:31:30 rabbit postfix/nqmgr[2285]: D552910D5B: from=<>, size=2342, nrcpt=1 (queue active)
Jun 22 01:31:31 rabbit postfix/pipe[2326]: fatal: get_service_attr: unknown username: cyrus
Jun 22 01:31:32 rabbit postfix/local[2325]: warning: premature end-of-input from private/cyrus socket while reading input attribute name
Jun 22 01:31:32 rabbit postfix/local[2325]: warning: private/cyrus socket: malformed response
Jun 22 01:31:32 rabbit postfix/master[2281]: warning: process /usr/libexec/postfix/pipe pid 2326 exit status 1
Jun 22 01:31:32 rabbit postfix/master[2281]: warning: /usr/libexec/postfix/pipe: bad command startup -- throttling
 
Old 06-20-2003, 07:43 PM   #4
gruger
Member
 
Registered: May 2003
Location: Belgium
Distribution: RedHat 8.0
Posts: 51

Original Poster
Rep: Reputation: 15
The problem is still the same, when I send mail from outside the mailsever ( for example my mailaccount at work ) my mailserver rejects it, also get warning message that mail is delayed...

When I send to users that have access on the same machine where the mailserver is running the message seems to come to their place.

My iptables are accepting on port 25.

Also here is my main.cf again, its a little changed


# QUEUE DIR ( where incoming mail is q't)
queue_directory = /var/spool/postfix

# PROGRAM DIR ( program bins are set )
program_directory = /usr/libexec/postfix

# COMMAND DIR ( location of postfix commands )
command_directory = /usr/sbin

# DAEMON DIR ( location of all daemon programs )
daemon_directory = /usr/libexec/postfix

# QUEUE AND PROCESS OWNERSHIP ( Specify the name of a user
# account THAT DOES NOT SHARE A GROUP WITH OTHER ACCOUNTS AND THAT
# OWNS NO OTHER FILES OR PROCESSES ON THE SYSTEM )
mail_owner = postfix

# DEFAULT PRIV PARAMETERS ( DO NOT SPECIFY A PRIVILEGED USER OR THE POSTFIX OWNER)
default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES ( Fully Qualified Domain Name (FQDN) for you machine.)
myhostname = rabbit.homelinux.org
#myhostname = virtual.domain.name
mydomain = homelinux.org

# SENDING MAIL ( Specifies the domain that post are coming from? )
myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL ( Where postfix listens on )
inet_interfaces = rabbit.homelinux.org
mydestination = $myhostname, localhost.$mydomain ;$mydomain

# INTERNET VERSUS INTRANET

#relayhost = $mydomain
#relayhost = gateway.my.domain
#relayhost = uucphost
#relayhost = [mail.$mydomain:9999]

# DEFAULT TRANSPORT
default_transport = smtp

# ADDRESS REWRITING
alias_maps = hash:/etc/postfix/aliases
alias_database = hash:/etc/postfix/aliases

# DELIVERED-TO
# prepend_delivered_header = command, file, forward
# prepend_delivered_header = forward

# ADDRESS EXTENSIONS (e.g., user+foo)
# recipient_delimiter = +

# DELIVERY TO MAILBOX
#home_mailbox = Mailbox
#home_mailbox = Maildir/
# mail_spool_directory = /var/mail
mail_spool_directory = /var/spool/mail
mailbox_command = /usr/bin/procmail
mailbox_transport = cyrus
#fallback_transport =

# RELAY DOMAINS
#relay_domains = $mydestination, $virtual_maps
relay_domains = $mydestination, /etc/postfix/relay-domains

#In this example the domains you want to relay for would be placed in the file /etc/postfix/relay-domains. One to a line like so:
# here.com
# mail.here.com
# there.org
# mail.there.org

# SHOW SOFTWARE VERSION OR NOT
#smtpd_banner = $myhostname ESMTP $mail_name
#smtpd_banner = $myhostname ESMTP $mail_name ($mail_version)

# PARALLEL DELIVERY TO THE SAME DESTINATION
local_destination_concurrency_limit = 2
default_destination_concurrency_limit = 10

# DEBUGING CONTROL ( Debug level )
debug_peer_level = 2
# debug_peer_list = 127.0.0.1
# debug_peer_list = some.domain
# debugger_command =
# PATH=/usr/bin:/usr/X11R6/bin
# xxgdb $daemon_directory/$process_name $process_id & sleep 5

# Other configurable parameters.
# NONE
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Greetings from Main g_trueblood LinuxQuestions.org Member Intro 1 09-15-2005 02:20 PM
./main to main DDD26 Linux - Newbie 3 07-25-2005 04:09 PM
(2) Main Menu's? Isn't it, "there can be only one?" for the term "Main"? t3gah LQ Suggestions & Feedback 1 04-09-2005 10:30 AM
main() confusioning in C name_in_use450 Programming 6 07-28-2004 12:27 AM
more main()? linuxanswer Programming 3 10-26-2003 04:06 PM


All times are GMT -5. The time now is 06:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration