LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 03-19-2008, 06:27 PM   #16
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30

i can't seem to send or receive any mail yet :\

is there a good detailed guide for setting up a mail server?

all i want is to forward the emails from 1 of my domains to another address
 
Old 03-19-2008, 06:30 PM   #17
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
What MTA (mail transport agent) software are you using or planning to use?

Edit - I'd suggest Postfix if you have no preference

Last edited by billymayday; 03-19-2008 at 06:33 PM.
 
Old 03-19-2008, 06:40 PM   #18
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
i have postfix 2.4.5 installed already
 
Old 03-19-2008, 07:05 PM   #19
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
There you go - should be a piece of cake.

There are various howtos on the postfix site, but what sort of seup are you thinking of? Postfix is pretty straightforward.
 
Old 03-19-2008, 07:10 PM   #20
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
i setup postfix and devecot together from that guide but i can't send mail (with an account made in ispconfig) so now i'm stuck
 
Old 03-19-2008, 07:23 PM   #21
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Starting point for problems has to be your logs. I wuld think they are in /var/log/maillog, but not sure for Ubuntu. Try what ever you were doing that didn't work and post the relevant section of the log. You may also need to post the output of postconf -n (don't post the whole main.cf)
 
Old 03-19-2008, 07:30 PM   #22
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
/var/log/mail.log = http://paste-it.net/7453/raw/

postconf -n = below

Code:
alias_database = hash:/etc/aliases
alias_maps = hash:/etc/aliases
append_dot_mydomain = no
biff = no
config_directory = /etc/postfix
inet_interfaces = all
mailbox_command = procmail -a "$EXTENSION"
mailbox_size_limit = 0
mydestination = /etc/postfix/local-host-names
myhostname = ubuntu
mynetworks = 127.0.0.0/8
recipient_delimiter = +
relayhost =
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache
smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
smtpd_recipient_restrictions = permit_mynetworks,permit_sasl_authenticated,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain = mydomainname.com
smtpd_sasl_security_options = noanonymous
smtpd_tls_cert_file = /etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file = /etc/ssl/private/ssl-cert-snakeoil.key
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtpd_use_tls = yes
virtual_mailbox_maps = hash:/etc/postfix/mailboxes

Last edited by steve51184; 03-19-2008 at 07:41 PM.
 
Old 03-19-2008, 07:38 PM   #23
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Whoa - post relevant lines of logs, not the whole shebang.


Now, first problem is you don't seem to have created the mailboxes database.

postmap /etc/postfix/mailboxes

This creates the mailboxes database from the text file you edited.

Try that and report back, and post in the thread the relevant log entries.
 
Old 03-19-2008, 07:44 PM   #24
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
postmap: fatal: open /etc/postfix/mailboxes: No such file or directory
 
Old 03-19-2008, 07:50 PM   #25
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Then you probably don't want the virtual_malbox_maps line. Do you know where that came from?
 
Old 03-19-2008, 07:52 PM   #26
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
no idea where is came from sorry

after taking it out i got a system email from the server so it can send mail BUT i'm still unable to send or revive my mail

Last edited by steve51184; 03-19-2008 at 07:57 PM.
 
Old 03-19-2008, 07:58 PM   #27
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Comment it out and try again.

Also, what domain are using? Assuming it's example.com, you will need to set mydomain, myhostname and mydestination correctly. These should work automatically, but your setting for myhostname could foul things up since I think it needs to be a fully qualified domain name (in this case, ubuntu.example.com, not just ubuntu). Comment out mydestination - the default it picks up should be fine. Try commenting out myhostname as well. If your machine is set up properly you don't need to define these.
 
Old 03-19-2008, 09:15 PM   #28
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
right now i can send mail but not receive it :\

Last edited by steve51184; 03-19-2008 at 09:18 PM.
 
Old 03-19-2008, 09:18 PM   #29
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Too easy.

Any more issues, probably start a new thread
 
Old 03-19-2008, 09:20 PM   #30
steve51184
Member
 
Registered: Dec 2006
Posts: 381

Original Poster
Rep: Reputation: 30
seems i edited my post the same time you replayed anyway..

right now i can send mail but not receive it :\
 
  


Reply



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
Setup Mail Server with Postfix/Dovecot/SquirrelMail olddocks Linux - Server 2 03-24-2009 01:34 AM
LXer: Debian Mail Server Setup with Postfix + Dovecot + SASL + Squirrel Mail LXer Syndicated Linux News 0 03-12-2008 10:50 PM
Linux Mail Server sendmail-dovecot-squirrelmail xhimi Linux - Server 2 01-18-2008 05:07 PM
mail server configuration using dovecot in rhel 4 karzon Linux - Newbie 2 03-16-2007 06:38 AM
For the linux gurus, about dovecot mail server kar11 Linux - Software 0 04-14-2004 06:20 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 01:04 AM.

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
Open Source Consulting | Domain Registration