Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > ISPConfig 2 > Installation/Configuration

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 4th August 2006, 07:34
korben korben is offline
Junior Member
 
Join Date: May 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Need help on email issues...pls pls. pls..

Thanks falko and till for your unwavering devotion to help out people in their problems especially the Linux people

here's my problem:

I setup Dapper following ur perfect Setup instructions and ISPConfig. everything went fine setting it up from DNS to hosts.

I set up emails for my domain www.gcic.edu.ph

here's an example:

user : gcic9_webmaster
email : webmaster

when I use Webmiau, i can send email; but when I use webmails like Yahoo! or Gmail to webmaster@gcic.edu.ph, my mail bounced back getting this error message:

This is an automatically generated Delivery Status Notification

Delivery to the following recipient failed permanently:

webmaster@gcic.edu.ph

Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 9): 554 <webmaster@gcic.edu.ph>: Relay access denied

----- Original message -----

Received: by 10.70.32.6 with SMTP id f6mr1757186wxf;
Thu, 03 Aug 2006 20:53:17 -0700 (PDT)
Return-Path: <rfontilla@gmail.com>
Received: from itoffice ( [203.131.83.230])
by mx.gmail.com with ESMTP id h37sm386101wxd.2006.08.03.20.53.13;
Thu, 03 Aug 2006 20:53:17 -0700 (PDT)
From: "Roland Fontilla" <rfontilla@gmail.com>
To: <webmaster@gcic.edu.ph>
Subject: TEST August 4
Date: Fri, 4 Aug 2006 11:53:04 +0800
Message-ID: <001501c6b779$833fa530$89beef90$@com>
MIME-Version: 1.0
Content-Type: multipart/alternative;
boundary="----=_NextPart_000_0016_01C6B7BC.9162E530"
X-Mailer: Microsoft Office Outlook 12.0
Thread-Index: Aca3eXyBCJx985J4QX6q9XxK8+UaDw==
Content-Language: en-us

This is a multipart message in MIME format.

------=_NextPart_000_0016_01C6B7BC.9162E530
Content-Type: text/plain;
charset="us-ascii"
Content-Transfer-Encoding: 7bit

TEST August 4, 2006



----- Message truncated -----



where did i go wrong?

I need to fix this to deploy it ASAP. Thanks for the response and more power!
Reply With Quote
Sponsored Links
  #2  
Old 4th August 2006, 08:27
Ben Ben is offline
Moderator
 
Join Date: Jul 2006
Posts: 1,029
Thanks: 7
Thanked 62 Times in 56 Posts
Default

Can you post your postfix main.cf?

What does your mail.log display when e.g. yahoo tries to send the mail to your server?
Reply With Quote
  #3  
Old 4th August 2006, 09:41
korben korben is offline
Junior Member
 
Join Date: May 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Here it is...


# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = dns2.gcic.edu.ph
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = dns2.gcic.edu.ph, localhost.gcic.edu.ph, , localhost
relayhost =
mynetworks = 127.0.0.0/8
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 25000000000
message_size_limit = 2000000000
recipient_delimiter = +
inet_interfaces = all
inet_protocols = all
smtpd_sasl_local_domain =
smtpd_sasl_auth_enable = yes
smtpd_sasl_security_options = noanonymous
broken_sasl_auth_clients = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject _unauth_destination
smtpd_tls_auth_only = no
smtp_use_tls = yes
smtp_tls_note_starttls_offer = yes
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
tls_random_source = dev:/dev/urandom
home_mailbox = Maildir/

virtual_maps = hash:/etc/postfix/virtusertable

mydestination = /etc/postfix/local-host-names
Reply With Quote
  #4  
Old 4th August 2006, 09:49
korben korben is offline
Junior Member
 
Join Date: May 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

and also when send email from Yahoo! or Googlemail,

i can send email at webmaster@www.gcic.edu.ph not on webmaster@gcic.edu.ph (which is more preferable). wen i send it on webmaster@gcic.edu.ph, i get a bounce back email telling me :

" PERM_FAILURE: SMTP Error (State 9): 550 <webmaster@gcic.edu.ph>: Recipient address rejected: User unknown in local recipient table "

yet my /etc/postfix/virtusertable has this

webmaster@www.gcic.edu.ph gcic9_webmaster
webmaster@gcic.edu.ph gcic9_webmaster
gcic9_webmaster@www.gcic.edu.ph gcic9_webmaster
gcic9_webmaster@gcic.edu.ph gcic9_webmaster


what seems to be wrong?
Reply With Quote
  #5  
Old 5th August 2006, 16:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

What's in /etc/postfix/local-host-names?
Also, you should think about setting up an MX record for gcic.edu.ph:

Code:
dig mx gcic.edu.ph

; <<>> DiG 9.2.1 <<>> mx gcic.edu.ph
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 1801
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0

;; QUESTION SECTION:
;gcic.edu.ph.                   IN      MX

;; AUTHORITY SECTION:
gcic.edu.ph.            10800   IN      SOA     dns2.gcic.edu.ph. webadmin.gcic.edu.ph. 2006080402 28800 7200 604800 86400

;; Query time: 2428 msec
;; SERVER: 81.169.163.104#53(81.169.163.104)
;; WHEN: Sat Aug  5 16:24:52 2006
;; MSG SIZE  rcvd: 79
__________________
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
  #6  
Old 8th August 2006, 02:34
korben korben is offline
Junior Member
 
Join Date: May 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

contents of my /etc/postfix/local-host-names

Code:
###################################
#
# ISPConfig local-host-names Configuration File
#         Version 1.0
#
###################################
localhost
server.localdomain
localhost.server.localdomain
localhost.localdomain
dns2.gcic.edu.ph
localhost.dns2.gcic.edu.ph
localhost.gcic.edu.ph
gcic.edu.ph
www.gcic.edu.ph
mail.gcic.edu.ph
#### MAKE MANUAL ENTRIES BELOW THIS LINE! ####

and my MX record has these entries:

Code:
  Mailserver  	  Hostname 
  gcic.edu.ph  	  www 
  gcic.edu.ph  	  mail

what seems to be wrong? I can't still recieve email on user@gcic.edu.ph but rather on user@www.gcic.edu.ph
Reply With Quote
  #7  
Old 8th August 2006, 09:48
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 35,983
Thanks: 825
Thanked 5,372 Times in 4,219 Posts
Default

Please add a MX record where to gcic.edu.ph where the hostname field is empty.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #8  
Old 9th August 2006, 03:29
korben korben is offline
Junior Member
 
Join Date: May 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Till, thanks for the reply... but still cant get no mail... I did what you told me... showing here at dig.

Code:
>root@dns2:/# dig mx gcic.edu.ph

; <<>> DiG 9.3.2 <<>> mx gcic.edu.ph
;; global options:  printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46388
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 2, ADDITIONAL: 1

;; QUESTION SECTION:
;gcic.edu.ph.                   IN      MX

;; ANSWER SECTION:
gcic.edu.ph.            85730   IN      MX      10 gcic.edu.ph.

;; AUTHORITY SECTION:
gcic.edu.ph.            85851   IN      NS      dns1.gcic.edu.ph.
gcic.edu.ph.            85851   IN      NS      dns2.gcic.edu.ph.

;; ADDITIONAL SECTION:
gcic.edu.ph.            7753    IN      A       203.131.83.229

;; Query time: 113 msec
;; SERVER: 58.69.254.3#53(58.69.254.3)
;; WHEN: Wed Aug  9 09:22:22 2006
;; MSG SIZE  rcvd: 99
and when i try to send email from gmail to webmaster@gcic.edu.ph i got a reply back message that shows..

Code:
Technical details of permanent failure:
PERM_FAILURE: SMTP Error (state 9): 554 <webmaster@gcic.edu.ph>: Relay access denied

  ----- Original message -----

Received: by 10.78.158.11 with SMTP id g11mr100003hue;
       Tue, 08 Aug 2006 18:18:52 -0700 (PDT)
Received: by 10.78.83.16 with HTTP; Tue, 8 Aug 2006 18:18:52 -0700 (PDT)
Message-ID: <2bcefbca0608081818w213dbb8dp5950d107a5ae828f@mail.gmail.com>
Date: Wed, 9 Aug 2006 09:18:52 +0800
From: "Roland Fontilla" <rfontilla@gmail.com>
To: "Rolando Fontilla" <webmaster@gcic.edu.ph>
Subject: TEST AUGUST 9 PART1 NO ATTACH
MIME-Version: 1.0
Content-Type: multipart/alternative;
       boundary="----=_Part_27796_11884014.1155086332102"

------=_Part_27796_11884014.1155086332102
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

i'm at a loss here...pls help! tnx in advance....
Reply With Quote
  #9  
Old 9th August 2006, 15:26
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,741 Times in 2,575 Posts
Default

Is 203.131.83.229 your server's public IP address?
Is webmaster@gcic.edu.ph listed in /etc/postfix/virtusertable?
What's the output of
Code:
grep webmaster /etc/passwd
?
__________________
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
  #10  
Old 10th August 2006, 12:18
korben korben is offline
Junior Member
 
Join Date: May 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

Quote:
Originally Posted by falko
Is 203.131.83.229 your server's public IP address?
Is webmaster@gcic.edu.ph listed in /etc/postfix/virtusertable?
What's the output of
Code:
grep webmaster /etc/passwd
?

the output is

Code:
gcic9_webmaster:x:10007:10009:Rolando Fontilla Jr.:/var/www/web9:/bin/bash
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
Problem with 'CC' & 'BCC' email not being delivered. snowfly HOWTO-Related Questions 10 20th July 2006 12:36
Email issues Digiorb Installation/Configuration 3 9th July 2006 13:31
Multiple MySQL Queries - with Postfix-mysql, courier-authmysql, maildrop-mysql... snowfly HOWTO-Related Questions 4 7th July 2006 04:19
Why can't I get my email? woozyerdaddee General 7 1st July 2006 12:09
email forwarding locally consumes all resources rdells General 20 1st May 2006 19:43


All times are GMT +2. The time now is 05:57.


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