You are not logged in.

#1 2014-03-31 14:34:34

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

[SOLVED] Help needed to configure postfix

I aim to be able to manage myself my mailserver.

For now i just need help in order to configure postfix so i can send an email from my postfix configured mail to my gmail account.
I've read the following wiki pages :
https://wiki.archlinux.org/index.php/postfix
https://wiki.archlinux.org/index.php/Si … ail_System
Wich are really not informative.
I've my own domain name, wich can be pinged, i will call it : domain.free.fr
Here is what i've done so far :

Install postfix :

sudo pacman -S postfix

Configure myhostname in /etc/postfix/main.cf

myhostname = domain.free.fr

Configure the username in  /etc/postfix/aliases

root:           glow

Reload aliases and postfix

newaliases
postfix reload
postfix status
postfix/postfix-script: the Postfix mail system is running: PID: 11706

Then i've tried to use sendmail to send an email to my gmail adress :

sendmail name@gmail.com
Test
.

Nothing coming in my mail.
What do i do wrong ?
Ican't find any log about postfix, /var/log/mail.log do not exist, is this normal ?

Last edited by GloW_on_dub (2014-03-31 15:45:54)

Offline

#2 2014-03-31 14:37:06

Void_Walker
Member
Registered: 2009-06-17
Posts: 53

Re: [SOLVED] Help needed to configure postfix

check

mailq

there may be some clues there.
In my case it was an issue with reverse hostname lookup not returning what it should, hence the remote mailserver refusing my message.

Last edited by Void_Walker (2014-03-31 14:37:22)

Offline

#3 2014-03-31 15:02:25

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: [SOLVED] Help needed to configure postfix

mailq
-Queue ID- --Size-- ----Arrival Time---- -Sender/Recipient-------
CCD29FF253      262 Mon Mar 31 16:58:37  glow@marron.hd.free.fr
(delivery temporarily suspended: connect to alt4.gmail-smtp-in.l.google.com[74.125.25.27]:25: Connection timed out)
                                         mathieu.westphal_at_gmail.com
-- 0 Kbytes in 1 Request.

My mail is in the queue, but cannot be delivered

Last edited by GloW_on_dub (2015-08-28 13:20:26)

Offline

#4 2014-03-31 15:11:19

Void_Walker
Member
Registered: 2009-06-17
Posts: 53

Re: [SOLVED] Help needed to configure postfix

After a little bit of googling, there was a suggestion that the port 25 might be closed by your ISP. You might try to contact them. Or check if there are no rules on your firewall that block it.

Offline

#5 2014-03-31 15:45:39

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: [SOLVED] Help needed to configure postfix

You're right indeed, ISP is blocking port 25 with outgoing packet.

I have another adress provided by my ISP, which i can use to send email.
I will try to use their smtp server as relay.
Thanks for your help

PS :
How to test if your ISP is blocking port 25 :

telnet smtp.gmail.com 25

Offline

#6 2014-03-31 15:54:32

GloW_on_dub
Member
Registered: 2013-03-13
Posts: 388

Re: [SOLVED] Help needed to configure postfix

My awesome ISP (Free, in France) as an option to unlock outgoing smtp directly from the webpanel !

It is working !

Offline

Board footer

Powered by FluxBB