Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #21  
Old 30th January 2006, 14:38
micko_escalade micko_escalade is offline
Senior Member
 
Join Date: Jan 2006
Posts: 123
Thanks: 7
Thanked 3 Times in 3 Posts
Default

Ok, here's the code, most comments are left out


Code:
#
#soft_bounce = no

# LOCAL PATHNAME INFORMATION

#
queue_directory = /var/spool/postfix

# The command_directory parameter specifies the location of all
# postXXX commands.
#
command_directory = /usr/sbin

# The daemon_directory parameter specifies the location of all Postfix
# daemon programs (i.e. programs listed in the master.cf file). This
# directory must be owned by root.
#
daemon_directory = /usr/libexec/postfix

# QUEUE AND PROCESS OWNERSHIP

#
mail_owner = postfix


#default_privs = nobody

# INTERNET HOST AND DOMAIN NAMES

#
#myhostname = host.domain.tld
#myhostname = virtual.domain.tld


#mydomain = domain.tld

# SENDING MAIL

#myorigin = $myhostname
#myorigin = $mydomain

# RECEIVING MAIL


#
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = localhost

#proxy_interfaces =
#proxy_interfaces = 1.2.3.4


mydestination = /etc/postfix/local-host-names
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain
#mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain,
#	mail.$mydomain, www.$mydomain, ftp.$mydomain

# REJECTING MAIL FOR UNKNOWN LOCAL USERS
#

# 
#local_recipient_maps = unix:passwd.byname $alias_maps
#local_recipient_maps = proxy:unix:passwd.byname $alias_maps
#local_recipient_maps =


#
unknown_local_recipient_reject_code = 550

# TRUST AND RELAY CONTROL


# 
#mynetworks_style = class
#mynetworks_style = subnet
#mynetworks_style = host


#
#mynetworks = 168.100.189.0/28, 127.0.0.0/8
#mynetworks = $config_directory/mynetworks
#mynetworks = hash:/etc/postfix/network_table


#
# NOTE: Postfix will not automatically forward mail for domains that
# list this system as their primary or backup MX host. See the
# permit_mx_backup restriction description in postconf(5).
#
#relay_domains = $mydestination

# INTERNET OR INTRANET


#relayhost = $mydomain
#relayhost = [gateway.my.domain]
#relayhost = [mailserver.isp.tld]
#relayhost = uucphost
#relayhost = [an.ip.add.ress]

# REJECTING UNKNOWN RELAY USERS
ser@domain.tld address.
# 
#relay_recipient_maps = hash:/etc/postfix/relay_recipients

# INPUT RATE CONTROL
#

#in_flow_delay = 1s

# ADDRESS REWRITING
#


# ADDRESS REDIRECTION (VIRTUAL DOMAIN)
#


# "USER HAS MOVED" BOUNCE MESSAGES
#
# See the discussion in the ADDRESS_REWRITING_README document.

# TRANSPORT MAP
#
# See the discussion in the ADDRESS_REWRITING_README document.

# ALIAS DATABASE

#
# It will take a minute or so before changes become visible.  Use
# "postfix reload" to eliminate the delay.
#
#alias_maps = dbm:/etc/aliases
alias_maps = hash:/etc/aliases
#alias_maps = hash:/etc/aliases, nis:mail.aliases
#alias_maps = netinfo:/aliases


#
#alias_database = dbm:/etc/aliases
#alias_database = dbm:/etc/mail/aliases
alias_database = hash:/etc/aliases
#alias_database = hash:/etc/aliases, hash:/opt/majordomo/aliases

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

#
#recipient_delimiter = +

# DELIVERY TO MAILBOX
#

#
#home_mailbox = Mailbox
#home_mailbox = Maildir/
 
# The mail_spool_directory parameter specifies the directory where
# UNIX-style mailboxes are kept. The default setting depends on the
# system type.
#
#mail_spool_directory = /var/mail
#mail_spool_directory = /var/spool/mail


#
#mailbox_command = /some/where/procmail
#mailbox_command = /some/where/procmail -a "$EXTENSION"


#
#mailbox_transport = lmtp:unix:/file/name
#mailbox_transport = cyrus


#
#fallback_transport = lmtp:unix:/file/name
#fallback_transport = cyrus
#fallback_transport =


#
# luser_relay works only for the default Postfix local delivery agent.
#

#
#luser_relay = $user@other.host
#luser_relay = $local@other.host
#luser_relay = admin+$local
  
# JUNK MAIL CONTROLS
# 

#
#header_checks = regexp:/etc/postfix/header_checks

# FAST ETRN SERVICE

#fast_flush_domains = $relay_domains

# 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 = 20

# DEBUGGING CONTROL
#
# The debug_peer_level parameter specifies the increment in verbose
# logging level when an SMTP client or server host name or address
# matches a pattern in the debug_peer_list parameter.
#
debug_peer_level = 2


#
#debug_peer_list = 127.0.0.1
#debug_peer_list = some.domain

#
debugger_command =
	 PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin
	 xxgdb $daemon_directory/$process_name $process_id & sleep 5


#
# debugger_command =
#	PATH=/bin:/usr/bin:/usr/local/bin; export PATH; (echo cont;
#	echo where) | gdb $daemon_directory/$process_name $process_id 2>&1
#	>$config_directory/$process_name.$process_id.log & sleep 5
#
#
# debugger_command =
#	PATH=/bin:/usr/bin:/sbin:/usr/sbin; export PATH; screen
#	-dmS $process_name gdb $daemon_directory/$process_name
#	$process_id & sleep 1

# INSTALL-TIME CONFIGURATION INFORMATION
#
# The following parameters are used when installing a new Postfix version.
# 
# sendmail_path: The full pathname of the Postfix sendmail command.
# This is the Sendmail-compatible mail posting interface.
# 
sendmail_path = /usr/sbin/sendmail.postfix

# newaliases_path: The full pathname of the Postfix newaliases command.
# This is the Sendmail-compatible command to build alias databases.
#
newaliases_path = /usr/bin/newaliases.postfix

# mailq_path: The full pathname of the Postfix mailq command.  This
# is the Sendmail-compatible mail queue listing command.
# 
mailq_path = /usr/bin/mailq.postfix

# setgid_group: The group for mail submission and queue management
# commands.  This must be a group name with a numerical group ID that
# is not shared with other accounts, not even with the Postfix account.
#
setgid_group = postdrop

# html_directory: The location of the Postfix HTML documentation.
#
html_directory = no

# manpage_directory: The location of the Postfix on-line manual pages.
#
manpage_directory = /usr/share/man

# sample_directory: The location of the Postfix sample configuration files.
# This parameter is obsolete as of Postfix 2.1.
#
sample_directory = /usr/share/doc/postfix-2.2.2/samples

# readme_directory: The location of the Postfix README files.
#
readme_directory = /usr/share/doc/postfix-2.2.2/README_FILES
home_mailbox = Maildir/
mailbox_command = 
virtual_maps = hash:/etc/postfix/virtusertable
Reply With Quote
Sponsored Links
  #22  
Old 30th January 2006, 15:01
micko_escalade micko_escalade is offline
Senior Member
 
Join Date: Jan 2006
Posts: 123
Thanks: 7
Thanked 3 Times in 3 Posts
Default

As far as I know there's no firewall,
when I use tihis small app (angry ip) that scans ip for open ports and looks like port 25 is open screenshot
but when I use this site to scan for open port it says no service running on port 25 link

here's the output of netstat -tap , most of the stuff gets cut off when I copy/paste from putty

Code:
[root@m5-fedora4-04 ~]# netstat -tap
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address               Foreign Address             Stat                                              e       PID/Program name
tcp        0      0 *:imaps                     *:*                         LIST                                              EN      1571/dovecot
tcp        0      0 *:pop3s                     *:*                         LIST                                              EN      1571/dovecot
tcp        0      0 *:mysql                     *:*                         LIST                                              EN      1540/mysqld
tcp        0      0 *:pop3                      *:*                         LIST                                              EN      1571/dovecot
tcp        0      0 *:imap                      *:*                         LIST                                              EN      1571/dovecot
tcp        0      0 *:10000                     *:*                         LIST                                              EN      1675/perl
tcp        0      0 *:http                      *:*                         LIST                                              EN      1652/httpd
tcp        0      0 *:ftp                       *:*                         LIST                                              EN      1642/proftpd: (acce
tcp        0      0 *:ssh                       *:*                         LIST                                              EN      1448/sshd
tcp        0      0 localhost.localdomain:smtp  *:*                         LIST                                              EN      1633/master
tcp        0      0 m5-fedora4-04.myxen.com:ssh mail1.rainierindustri:19688 ESTA                                              BLISHED 1876/sshd: root@not
tcp        0      0 m5-fedora4-04.myxen.co:pop3 c-67-171-7-xxx.hsd1.wa:1706 TIME                                              _WAIT   -
tcp        0   1040 m5-fedora4-04.myxen.com:ssh mail1.rainierindustri:19488 ESTA                                              BLISHED 1829/0
tcp        0      0 m5-fedora4-04.myxen.com:ssh c-67-171-7-xxx.hsd1.wa:3389 ESTA                                              BLISHED 1701/sshd: root@not
[root@m5-fedora4-04 ~]#

Last edited by micko_escalade; 30th January 2006 at 15:27.
Reply With Quote
  #23  
Old 30th January 2006, 15:24
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

Is the workstation where you run angry IP in the same local network then your server?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #24  
Old 30th January 2006, 15:29
micko_escalade micko_escalade is offline
Senior Member
 
Join Date: Jan 2006
Posts: 123
Thanks: 7
Thanked 3 Times in 3 Posts
Default

Angry IP is on my personal computer, VPS is somewhere is the U.S.A, so VPS/server its remote machine

Last edited by micko_escalade; 30th January 2006 at 15:32.
Reply With Quote
  #25  
Old 30th January 2006, 19:00
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
Default

Quote:
Originally Posted by micko_escalade
Ok, here's the code, most comments are left out


Code:
inet_interfaces = all
#inet_interfaces = $myhostname
#inet_interfaces = $myhostname, localhost
inet_interfaces = localhost
You set inet_interfaces twice in /etc/postfix/main.cf, the last one overriding the first one. Please remove
Code:
inet_interfaces = localhost
and restart Postfix!
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #26  
Old 31st January 2006, 03:42
micko_escalade micko_escalade is offline
Senior Member
 
Join Date: Jan 2006
Posts: 123
Thanks: 7
Thanked 3 Times in 3 Posts
Default

Quote:
Originally Posted by falko
It might take up to 72 hours until the changes propagate.
looks MX recordes propagated now,
when I telnet to my vps (telnet 207.210.228.XX 25) I get welcome message
220 m5-fedora4-04.myxen.com ESMTP Postfix

here's the error from outlook express when I try to send email to yahoo

The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'me@yahoo.com'. Subject 'test66', Account: 'mydomain.com', Server: 'mydomain.com', Protocol: SMTP, Server Response: '554 <me@yahoo.com>: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79


looks like I set something wrong in local-host-names and virtusertable

bellow is what's in my local-host-names
localhost
mydomain.com
localhost.mydomain.com

bellow is what's in my virtusertable
me@mydomain.com sample_user
Reply With Quote
  #27  
Old 31st January 2006, 11:12
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,500 Times in 4,329 Posts
Default

Quote:
Originally Posted by micko_escalade
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'me@yahoo.com'. Subject 'test66', Account: 'mydomain.com', Server: 'mydomain.com', Protocol: SMTP, Server Response: '554 <me@yahoo.com>: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79
You must authenticate yourself with smtp-auth when you send emails to domains that are not on your server (yahoo.com).

Please check "Server needs authentication" in your outlook express smtp settings.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #28  
Old 31st January 2006, 19:05
micko_escalade micko_escalade is offline
Senior Member
 
Join Date: Jan 2006
Posts: 123
Thanks: 7
Thanked 3 Times in 3 Posts
Default

My server requiers authentication is checked in OE, same erorr with checked and unchecked

And I don't understand why when I send email to mydomain.com it gets bounced

-----------------------------------------------------------------------
This is the Postfix program at host m5-fedora4-04.myxen.com.

I'm sorry to have to inform you that your message could not
be delivered to one or more recipients. It's attached below.

For further assistance, please send mail to <postmaster>

If you do so, please include this problem report. You can
delete your own text from the attached returned message.

The Postfix program

<sample_user@m5-fedora4-04.myxen.com> (expanded from
<me@mydomain.com>):
Host or domain name not found. Name service error for
name=m5-fedora4-04.myxen.com type=A: Host not found
------------------------------------------------------------------------------------------

but when I add m5-fedora4-04.myxen.com to local-host-names I can receive it in OE,

mydomain.com is already in local-host-names why can't I receive it??

myxen.com is my host domain and ip is differnet then my VPS's ip

Code:
[root@m5-fedora4-04 ~]# hostname -f
m5-fedora4-04.myxen.com
Code:
[root@m5-fedora4-04 ~]# hostname
m5-fedora4-04

Last edited by micko_escalade; 1st February 2006 at 03:56.
Reply With Quote
  #29  
Old 1st February 2006, 05:58
micko_escalade micko_escalade is offline
Senior Member
 
Join Date: Jan 2006
Posts: 123
Thanks: 7
Thanked 3 Times in 3 Posts
Default

I've installed SquirrelMail (web based email) and I was able to send test email to yahoo.com bellow are headers from that email.

---------------------------------------------------------------------------------------
X-Apparently-To:myusername@yahoo.com via 209.191.68.172; Tue, 31 Jan 2006 19:57:05 -0800
X-Originating-IP: [207.210.228.XX]
Authentication-Results: mta134.mail.mud.yahoo.com
from=m5-fedora4-04.myxen.com; domainkeys=neutral (no sig)
Received: from 207.210.228.XX (EHLO m5-fedora4-04.myxen.com) (207.210.228.XX)
by mta134.mail.mud.yahoo.com with SMTP; Tue, 31 Jan 2006 19:57:05 -0800
Received: from m5-fedora4-04.myxen.com (localhost.localdomain [127.0.0.1])
by m5-fedora4-04.myxen.com (Postfix) with ESMTP id 47BF9DF6983
for <myusername@yahoo.com>; Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Received: (from apache@localhost)
by m5-fedora4-04.myxen.com (8.13.4/8.13.4/Submit) id k113vOep001808;
Tue, 31 Jan 2006 19:57:24 -0800
From: sample_user@m5-fedora4-04.myxen.com
X-Authentication-Warning: m5-fedora4-04.myxen.com: apache set sender to marinko@localhost using -f
Received: from 67.171.7.xxx
(SquirrelMail authenticated user sample_user)
by www.mydomain.com with HTTP;
Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Date: Tue, 31 Jan 2006 19:57:24 -0800 (PST)
Subject: test at 7:57
To: myusername@yahoo.com
User-Agent: SquirrelMail/1.4.6 [CVS]-0.cvs20050812.3.fc5
MIME-Version: 1.0
Content-Type: text/plain;charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Priority: 3 (Normal)
Importance: Normal
------------------------------------------------------------------------------------------------
Reply With Quote
  #30  
Old 1st February 2006, 12:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,745 Times in 2,578 Posts
 
Default

Quote:
Originally Posted by micko_escalade
The message could not be sent because one of the recipients was rejected by the server. The rejected e-mail address was 'me@yahoo.com'. Subject 'test66', Account: 'mydomain.com', Server: 'mydomain.com', Protocol: SMTP, Server Response: '554 <me@yahoo.com>: Relay access denied', Port: 25, Secure(SSL): No, Server Error: 554, Error Number: 0x800CCC79
This has nothing to do with local-host-names and virtusertable. You must check "Server requires authentication." in Outlook. Have a look here: http://mail.cs.uiuc.edu/relay/outlook-config.html
Quote:
The Postfix program

<sample_user@m5-fedora4-04.myxen.com> (expanded from
<me@mydomain.com>):
Host or domain name not found. Name service error for
name=m5-fedora4-04.myxen.com type=A: Host not found
You must either create na A record for m5-fedora4-04.myxen.com (this is the solution I prefer), or you put m5-fedora4-04.myxen.com into /etc/hosts.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Server Setup Behind a Router/Firewall/Cable Modem kisong Installation/Configuration 2 1st August 2010 17:05
configure as a secondary mail server xma General 6 15th February 2006 13:46
Email - Ueb-Miau mazhar Installation/Configuration 5 21st December 2005 10:01
Mail server jas_esp Server Operation 1 7th December 2005 18:17
Can't get MX for external mail server to work semmelbroesel Installation/Configuration 4 25th November 2005 17:48


All times are GMT +2. The time now is 18:48.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.