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 19th June 2007, 13:17
bentown bentown is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default E-mail Problems All outgoing e-mails @localhost as domain

Hi,

This is the first time ive posted on these forums but i have read them alot. I have also used alot of the How to guides.

I setup my server following the installing A LAMP System With Fedora Core 6 (thanks falko!!!)

Ive used this guide before and had everything up and running fine.

I am using roudecube as my webmail client, and on all outgoing e-mails it says @localhost instead of the domain name. Eg ben@oceanlinksolutions.com

I can still send e-mails but they all come through as ben@localhost.localhost

I can change this in the preferences and its it will save it but its a hassel to log into each and every new e-mail account i create and fix it.

postconf -n produces the following

Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
broken_sasl_auth_clients = yes
command_directory = /usr/sbin
config_directory = /etc/postfix
daemon_directory = /usr/libexec/postfix
debug_peer_level = 2
html_directory = no
inet_interfaces = all
mail_owner = postfix
mailq_path = /usr/bin/mailq.postfix
manpage_directory = /usr/share/man
mydestination = /etc/postfix/local-host-names
mynetworks = 127.0.0.0/8, 192.168.1.0/24
newaliases_path = /usr/bin/newaliases.postfix
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/postfix-2.3.3/README_FILES
sample_directory = /usr/share/doc/postfix-2.3.3/samples
sendmail_path = /usr/sbin/sendmail.postfix
setgid_group = postdrop
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_recipient_restrictions = permit_sasl_authenticated,permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_auth_only = no
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
tls_random_source = dev:/dev/urandom
Im rather new to linux, but i have looked around and cant really find much, i think its because i dont know what the actual problem is if you get my drift.

Thanks in advance.
Reply With Quote
Sponsored Links
  #2  
Old 20th June 2007, 07:31
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,499 Times in 4,328 Posts
Default

Have you set a sender and reply address in the options in roundcube?
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #3  
Old 20th June 2007, 07:51
bentown bentown is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

yes i have, but i want it to automatically pick up the domain which the e-mail address belongs to.

Eg ben@oceanlinksolutions.com instead of ben@localhost

Im not sure where i have gone wrong, other times ive had this work correctly but in this instance i havent.

Do you know how roundcube pulls the domain name for the user logging in?
Reply With Quote
  #4  
Old 20th June 2007, 08:06
till till is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 36,421
Thanks: 834
Thanked 5,499 Times in 4,328 Posts
Default

If roundcube has a plugin for reading a postfix virtusertable file, you might be able to use this to get the nescessary information. If not, you will have to extend roundcube to read the data from the ISPConfig database or the virtusertable file.
__________________
Till Brehm
--
Get ISPConfig support and the ISPConfig 3 manual from ispconfig.org.
Reply With Quote
  #5  
Old 20th June 2007, 08:44
bentown bentown is offline
Junior Member
 
Join Date: Jun 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

it should by default read the virtusertable, well in its config file it is pointed to it. But it doesnt seem to be picking them up. I had a peak in the /etc/postfix/virtusertable and all the correct entries are in there, so atleast i know ISPconfig is entering them as it should be.

It just seems that roundcube isnt collecting them which is even more odd.

Im going to have a look over the roundcube config file again.

Edit: ive looked around and in the how to guide, they say that you just change it, but no reason as to why it doesnt pick ip up automatically.

Last edited by bentown; 20th June 2007 at 09:01.
Reply With Quote
  #6  
Old 20th June 2007, 15:12
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,744 Times in 2,577 Posts
 
Default

Please run
Code:
postconf -e 'virtual_maps = hash:/etc/postfix/virtusertable'
/etc/init.d/postfix restart
__________________
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
Postfix reject connections gabrix Server Operation 27 25th January 2007 08:37
Core 4: Error Messages on Fresh Install re CTX/SSL jjw Installation/Configuration 30 6th September 2006 12:16
Can not recieve mail with de virtual mail adress Mounir Installation/Configuration 9 24th July 2006 23:16
Virtual Users And Domains With Postfix, Courier And MySQL (+ SMTP-AUTH, Quota, SpamAs ebbay Installation/Configuration 9 4th March 2006 11:47
How to send mails using php mail function outside domain pankaj Technical 1 19th December 2005 22:09


All times are GMT +2. The time now is 23:37.


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