Re: Howto: set up a mail server in Ubuntu
This seems like the best tutorial on the net! I've been pulling my hair out for days though. Took me forever to figure out my ISP blocks port 25!
I have a service with my dynamic DNS provider that should solve just this problem, an e-mail port forwarder. I can use a different port like 2525 or 26. Im not sure how to implement this with postfix. I have tried "relayhost = waterlowphotography.com:2525" But it doesnt seem to work. Does anyone know what I should do? I have started my install fresh and am now at the first "test" point after a simple server install.
Re: Howto: set up a mail server in Ubuntu
try to forward port at your router - outside 2526 WAN : inside (LAN) 25
chdir(/var/spool/postfix No such file or directory), but it exists !!!
I edited the configuration files restart postfix and this is what i get
Code:
Feb 09 15:26:01 linux-clui.site postfix/sendmail[30911]: fatal: chdir /var/spool/postfix : No such file or directory
but that directory exists maybe some permission issue?
Code:
ls -la /var/spool/postfix
Code:
/var/spool/postfix:
total 0
drwxr-xr-x 1 root root 166 Nov 6 16:36 .
drwxr-xr-x 1 root root 138 Jan 20 12:48 ..
drwx------ 1 postfix root 0 Oct 18 15:11 active
drwx------ 1 postfix root 0 Oct 18 15:11 bounce
drwx------ 1 postfix root 0 Oct 18 15:11 corrupt
drwx------ 1 postfix root 0 Oct 18 15:11 defer
drwx------ 1 postfix root 0 Oct 18 15:11 deferred
drwx------ 1 postfix root 0 Oct 18 15:11 flush
drwx------ 1 postfix root 0 Oct 18 15:11 hold
drwx------ 1 postfix root 0 Oct 18 15:11 incoming
drwx-wx--- 1 postfix maildrop 8000 Feb 3 16:29 maildrop
drwxr-xr-x 1 root root 0 Jan 19 10:06 pid
drwx------ 1 postfix root 200 Jan 19 09:32 private
drwx--x--- 1 postfix maildrop 54 Jan 19 09:32 public
drwx------ 1 postfix root 0 Oct 18 15:11 saved
drwx------ 1 postfix root 0 Oct 18 15:11 trace
and the only variable with that value is : queue directory so it should be fine, or could it be some permission issue?
Re: Howto: set up a mail server in Ubuntu
actually it was problem that I've commnet on that line, delete command and it restarted like breeze, little weird. though..
telnet postfix (localhost) no output, but postfix is runnig
Code:
linux-clui:~ # ps -ef| grep "postfix"
postfix 2571 31498 0 Feb09 ? 00:00:00 pickup -l -t fifo -u
postfix 3992 31498 0 Feb09 ? 00:00:00 cleanup -z -t unix -u
postfix 4909 31498 0 Feb09 ? 00:00:00 cleanup -z -t unix -u
postfix 7578 31498 0 Feb09 ? 00:00:00 cleanup -z -t unix -u
postfix 9774 31498 0 08:17 ? 00:00:00 qmgr -l -t fifo -u
robert 30877 1678 0 Feb09 ? 00:00:07 /usr/bin/okular /var/run/media/robert/data/robert/Public/postfix_the_definitive_guide.pdf --icon okular -caption Okular
root 31498 1 0 Feb09 ? 00:00:00 /usr/lib/postfix/master
Code:
linux-clui:~ # netstat -tupln | grep "25"
tcp 8 0 127.0.0.1:25 0.0.0.0:* LISTEN 31498/master
so running as expected
Code:
telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
but no output telnet hangs here
Re: Howto: set up a mail server in Ubuntu
I need help everything works flawlessly apart from being able to sent email from a mail client i get relay access denied, the only way i can get it to work is if i add my ip or and external ip (if i want to access from another location), to the mynetworks in postfix/main.cf
I started another thread before i realised this one existed. http://ubuntuforums.org/showthread.p...7#post12924217
once everything is up and running smooth i will donate for your fabulous tutorial flurdy
My configs are posted in the other thread as well as the error message.
Re: Howto: set up a mail server in Ubuntu
Hi,
i've just followed this freaking awesome HowTo http://flurdy.com/docs/postfix/ and everything is working fine for the last six weeks but i also realized everyone can send emails through telnet on port 25 without the need of authenticating. Could someone explain me if that's been made on purpose?
Thanks a lot mates!
Re: Howto: set up a mail server in Ubuntu
also solved that but another problem comes at the mysql - postfix "binding",
Code:
/etc/postfix/mysql_mailbox.cf
is this
Code:
user=mail
password=mailPASSWORD
dbname=maildb
table=users
select_field=maildir
where_field=id
hosts=127.0.0.1
additional_conditions = and enabled = 1
, so that looks like every will have same password.....???
and what's that filed crypt in users table for? like sholdn't it bee like that
Code:
AES_ENCRYPT('password_for_particular-user',SHA2('mailPASSWORD',512))
so that mailPASSWORD is meant like encryption key ?
Re: Howto: set up a mail server in Ubuntu
just a note for the people who are adding roundcube this will save you a small headache.
if roundcube cant send an email you need to do this.
Adding User Accounts
Note: If you set $rcmail_config['smtp_user'] and $rcmail_config['smtp_pass'] to '%u' and '%p' respectively in config/main.inc.php, you do not have to do the following steps.
Unfortunately, due to how Dreamhost has its email account system set up, RoundCube will not work out-of-the-box as it usually does. We have to manually add any accounts we want to be able to log in with to the users table in our MySQL database. Hopefully, an Admin interface that makes this easier will be added in the future. Until then, we get to do it the old-fashioned way.
- Log into your database via phpMyAdmin (http://rcdb.yourdomain.com in our installation example).
- Click on the link to the users table in the left frame after you've selected your database from the dropdown menu.
- Click on the "Insert" link at the top of the right frame.
- The only fields you need to enter information in are username, mail_host, and alias. Username is user@domain.com (the same username this user would use for a normal email client), mail_host is mail.yourdomain.com, and alias is whatever you want the user to enter in the username field when logging into RoundCube.
- Hit the Go button at the bottom of the page to submit the form after you've supplied the correct information.
- Repeat for each user you want to have access to your RoundCube installation.
- Log into RoundCube and add the following folders on the options page.
- To activate mail sending, you will also need to create an identity under Personal Settings --> Identities.
Re: Howto: set up a mail server in Ubuntu
if roundcube cant log into the server you need to make these changes
$rcmail_config['imap_auth_type'] = LOGIN;
$rcmail_config['smtp_server'] = 'ssl://localhost';
$rcmail_config['default_host'] = 'ssl://localhost:993';