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
  #11  
Old 20th January 2010, 20:31
hsa2 hsa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I've made the changes.

I've edit mynetworks line as:

Code:
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 144.122.116.0/24,
and problem is still the same.
Reply With Quote
Sponsored Links
  #12  
Old 20th January 2010, 20:36
carlosinfl carlosinfl is offline
Member
 
Join Date: Dec 2009
Location: Orlando, FL
Posts: 70
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via AIM to carlosinfl
Default

What are you using to attempt to send email from? What client? Mozilla Thunderbird or Evolution? How is the client configured to download email? POP or IMAP? Can you download email without any issues? Can you post your Dovecot.conf file here so I can see it?
Reply With Quote
  #13  
Old 20th January 2010, 20:52
carlosinfl carlosinfl is offline
Member
 
Join Date: Dec 2009
Location: Orlando, FL
Posts: 70
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via AIM to carlosinfl
Default

Looking at your main.cf closer. Please back your main.cf up and use this one I am providing as a test.

Code:
mv /etc/postfix/main.cf /etc/postfix/main.1_20_2010
Now create a new main.cf and copy and paste my entire code in there:

Code:
vim /etc/postfix/main.cf
Now copy and paste the text in there. Make sure you press 'i' for insert first and you don't cut out any of the code.

Now restart Postfix again. Also restart Dovecot and try again:

Code:
/etc/init.d/postfix restart && /etc/init.d/dovecot restart
COPY AND PASTE THIS INTO YOUR MAIN.CF

Code:
smtpd_banner = $myhostname ESMTP
biff = no

append_dot_mydomain = no

readme_directory = no

# TLS parameters
smtpd_tls_cert_file = /etc/ssl/certs/ssl-mail.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-mail.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

myhostname = karincayiyen.difuzyonhosting.com
mydomain = difuzyonhosting.com
myorigin = $mydomain
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases

mydestination = $myhostname, $mydomain, karincayiyen.$mydomain, 
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128, 144.122.116.0/24,
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
relay_domains =

virtual_minimum_uid = 150
virtual_uid_maps = static:150
virtual_gid_maps = static:8
virtual_mailbox_base = /var/vmail
virtual_transport = dovecot
dovecot_destination_recipient_limit = 1

virtual_alias_maps = proxy:mysql:/etc/postfix/my_alias_maps.cf
virtual_mailbox_limit = proxy:mysql:/etc/postfix/my_mailbox_limits.cf
virtual_mailbox_domains = proxy:mysql:/etc/postfix/my_domains_maps.cf
virtual_mailbox_maps = proxy:mysql:/etc/postfix/my_mailbox_maps.cf
Reply With Quote
  #14  
Old 20th January 2010, 21:01
hsa2 hsa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi,
I did just like you said. I tried changing 'mydestination' value before. I am trying to send hsa2@domain.com, hsa2 is the user that I created from 'postfixadmin', and it says hsa2 is unknown user.

EDIT: But I can connect to smtp and pop3 flawlessly, problem is i can't send mail to myself from my google apps based gmail address.

Last edited by hsa2; 20th January 2010 at 21:03.
Reply With Quote
  #15  
Old 20th January 2010, 21:11
carlosinfl carlosinfl is offline
Member
 
Join Date: Dec 2009
Location: Orlando, FL
Posts: 70
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via AIM to carlosinfl
Default

Sorry man. That is far as I think I will be able to help. Maybe someone else can shine better light on this subject. I am interested to see what it says...also check your logs on your mail server when you get the 'relay access denied' error.

Run this command:

Code:
tail -f /var/log/mail.err
I think that is what it is in Debian / Ubuntu and then when you send from your PC. Look at the error that pops up and post it here. It should tell you exactly what is causing the reject.
Reply With Quote
  #16  
Old 20th January 2010, 21:21
hsa2 hsa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thanks for your effort @carlwill, I hope someone else can suggest something.
Reply With Quote
  #17  
Old 20th January 2010, 21:23
carlosinfl carlosinfl is offline
Member
 
Join Date: Dec 2009
Location: Orlando, FL
Posts: 70
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via AIM to carlosinfl
Default

Welcome. You should post your error logs from when you try and send mail from the client. That will better narrow down the issue.
Reply With Quote
  #18  
Old 20th January 2010, 21:35
hsa2 hsa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Gmail says:
Code:
This is the mail system at host karincayiyen.difuzyonhosting.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 mail system

<hsa2@difuzyonhosting.com>: unknown user: "hsa2"

Final-Recipient: rfc822; hsa2@difuzyonhosting.com
Original-Recipient: rfc822;hsa2@difuzyonhosting.com
Action: failed
Status: 5.1.1
Diagnostic-Code: X-Postfix; unknown user: "hsa2"
Reply With Quote
  #19  
Old 20th January 2010, 21:43
carlosinfl carlosinfl is offline
Member
 
Join Date: Dec 2009
Location: Orlando, FL
Posts: 70
Thanks: 3
Thanked 4 Times in 4 Posts
Send a message via AIM to carlosinfl
Default

What do your Postfix logs report?
Reply With Quote
  #20  
Old 20th January 2010, 21:47
hsa2 hsa2 is offline
Junior Member
 
Join Date: Jan 2010
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
 
Default

/var/log/mail.log
Code:
Jan 20 23:46:02 karincayiyen postfix/smtpd[15906]: connect from mail-ew0-f209.google.com[209.85.219.209]
Jan 20 23:46:02 karincayiyen postfix/smtpd[15906]: 7952AF208EE: client=mail-ew0-f209.google.com[209.85.219.209]
Jan 20 23:46:02 karincayiyen postfix/cleanup[15910]: 7952AF208EE: message-id=<552ad4a51001201246l45faa0fbpb2096721338c20c9@mail.gmail.com>
Jan 20 23:46:02 karincayiyen postfix/qmgr[15787]: 7952AF208EE: from=<hsa2@difuzyon.net>, size=1237, nrcpt=1 (queue active)
Jan 20 23:46:02 karincayiyen postfix/local[15911]: 7952AF208EE: to=<hsa2@difuzyonhosting.com>, relay=local, delay=0.39, delays=0.38/0/0/0.01, dsn=5.1.1, status=bounced (unknown user: "hsa2")
Jan 20 23:46:02 karincayiyen postfix/cleanup[15910]: BACCEF208F0: message-id=<20100120204602.BACCEF208F0@karincayiyen.difuzyonhosting.com>
Jan 20 23:46:02 karincayiyen postfix/qmgr[15787]: BACCEF208F0: from=<>, size=3169, nrcpt=1 (queue active)
Jan 20 23:46:02 karincayiyen postfix/bounce[15912]: 7952AF208EE: sender non-delivery notification: BACCEF208F0
Jan 20 23:46:02 karincayiyen postfix/qmgr[15787]: 7952AF208EE: removed
Jan 20 23:46:03 karincayiyen postfix/smtp[15914]: BACCEF208F0: to=<hsa2@difuzyon.net>, relay=ASPMX.L.GOOGLE.COM[209.85.221.51]:25, delay=0.72, delays=0.01/0/0.11/0.59, dsn=2.0.0, status=sent (250 2.0.0 OK 1264020362 17si587211qyk.35)
Jan 20 23:46:03 karincayiyen postfix/qmgr[15787]: BACCEF208F0: removed
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
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Postfix can't received email from exterior astra2000 Server Operation 5 17th October 2009 23:26
Postfix not responding to telnet CarbonCopy Server Operation 6 8th May 2009 05:39
Centos 4.4 32bit Hangs, High Server load 3cwired_com Server Operation 11 16th November 2006 15:47
Verify email setup meekish Installation/Configuration 28 27th October 2006 15:36


All times are GMT +2. The time now is 10:15.


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