View Full Version : Need urgent help
MiniMe
2nd December 2008, 14:41
Hey yall,
i got an email server set up thx to falko and co with anti spam and anti virus following the Suse 11 server guide setup.
Now, a friend of mine asked, if i can add his domain temporarly for receiving mails.
Is this possible? Can i add 2 domains for sending / receiving mails on my server.
And if so, how does one do this ?
Please, need this urgently ! All help will be much appreciated by my friend !
PS: atm i handle mail on my mailsystem for domain evil-hannie.eu , his domain is paulsexton.me.uk
sjau
2nd December 2008, 15:10
do you use ispconfig?
what guide did you follow?
MiniMe
2nd December 2008, 15:28
No, i dont use isp config, and i followed this tutorial :
http://www.howtoforge.net/perfect-server-opensuse11-p4
falko
2nd December 2008, 15:43
Take a look here: http://www.howtoforge.com/forums/showthread.php?t=2
MiniMe
2nd December 2008, 16:03
ill check it out, hopefully i find something useful there :)
MiniMe
2nd December 2008, 16:32
Take a look here: http://www.howtoforge.com/forums/showthread.php?t=2
ok ive read this and its exactly as i have done, the only concern i have now is :
how does my user get his email ? i mean :
ofc he sets his pop server to my mailserver, and he has to use the system user account i created for him ? ( login and password wise ) or what details does he need to login to his mailbox ?
Regards,
sjau
2nd December 2008, 18:30
the ssh username and ssh password will him login to his mailbox.
MiniMe
2nd December 2008, 18:46
the ssh username and ssh password will him login to his mailbox.
thanks a lot
last question, this guy asked me if he can use my mailserver as smtp ( for sending mails ) ...
I dont know about this, but does the setup guide i posted earlier shows you how to configure this crap ?
Rgrds,
MiniMe
2nd December 2008, 22:05
The guy tells me, when he uses my server as SMTP server, he gets, relay access denied ...
edge
2nd December 2008, 22:23
Make sure that the guy sets his outgoing server (SMTP) to use the same settings as his incoming mail settings
MiniMe
2nd December 2008, 23:04
The difference is between him and me is :
i use the smtp server from my isp
but he has to use mine . so he set it to be mine, but he gets relay access denied ...
falko
3rd December 2008, 17:03
He must enable "Server requires authentication" in his email client.
MiniMe
3rd December 2008, 17:17
He must enable "Server requires authentication" in his email client.
that setting is related to using MY smtp server ?
rgrds,
MiniMe
3rd December 2008, 18:39
He must enable "Server requires authentication" in his email client.
he did
he still gets relay access denied
falko
4th December 2008, 00:05
Are you 100% sure that the username and password are correct? What's in the mail log when he tries to send an email?
MiniMe
4th December 2008, 13:21
Are you 100% sure that the username and password are correct? What's in the mail log when he tries to send an email?
Yes he is.
He is using smtp auth and this is the log :
Dec 4 12:13:56 Artemis postfix/smtpd[3909]: connect from 94-193-249-120.zone7.bethere.co.uk[94.193.249.120]
Dec 4 12:13:57 Artemis postfix/smtpd[3909]: NOQUEUE: reject: RCPT from 94-193-249-120.zone7.bethere.co.uk[94.193.249.120]: 554 5.7.1 <paul.michael.sexton@gmail.com>: Relay access denied; from=<mail@paulsexton.me.uk> to=<paul.michael.sexton@gmail.com> proto=ESMTP helo=<home>
Dec 4 12:13:59 Artemis postfix/smtpd[3909]: disconnect from 94-193-249-120.zone7.bethere.co.uk[94.193.249.120]
MiniMe
5th December 2008, 00:00
Are you 100% sure that the username and password are correct? What's in the mail log when he tries to send an email?
falko, any possible update on this ? :)
sjau
5th December 2008, 00:05
tell him to try and connect and you check the logs on the server... that should give you clues.
falko
5th December 2008, 00:43
If you change that user's shell to /bin/bash in /etc/passwd, can that user log using SSH?
MiniMe
5th December 2008, 02:25
If you change that user's shell to /bin/bash in /etc/passwd, can that user log using SSH?
It is / was / by default set as /bin/bash so yes this user can login using SSH.
I did not change this.
Regards,
falko
5th December 2008, 17:18
Did you disable AppArmor?
MiniMe
5th December 2008, 17:43
Did you disable AppArmor?
Remind you : you are alkting to a emailserver noob, wtf is apparmor ? :p
And how do i check if its enabled / disabled / active or whatever ? :)
falko
6th December 2008, 15:00
Take a look at chapter 16 on http://www.howtoforge.com/perfect-server-opensuse11-p6 :)
MiniMe
6th December 2008, 15:07
Take a look at chapter 16 on http://www.howtoforge.com/perfect-server-opensuse11-p6 :)
Ah thx, well, since that stuff is not in the right place, i guess i dont have it :)
So no, its not running
falko
7th December 2008, 15:54
Ok, what's in /etc/postfix/main.cf (please strip out the comments)?
MiniMe
7th December 2008, 16:06
Ok, what's in /etc/postfix/main.cf (please strip out the comments)?
alias_maps = hash:/etc/aliases
biff = no
broken_sasl_auth_clients = yes
canonical_maps = hash:/etc/postfix/canonical
command_directory = /usr/sbin
config_directory = /etc/postfix
content_filter = amavis:[127.0.0.1]:10024
daemon_directory = /usr/lib/postfix
data_directory = /var/lib/postfix
debug_peer_level = 2
defer_transports =
disable_dns_lookups = no
disable_mime_output_conversion = no
home_mailbox = Maildir/
html_directory = /usr/share/doc/packages/postfix/html
inet_interfaces = 78.46.206.197 localhost
inet_protocols = all
mail_owner = postfix
mail_spool_directory = /var/mail
mailbox_command =
mailbox_size_limit = 0
mailbox_transport =
mailq_path = /usr/bin/mailq
manpage_directory = /usr/share/man
masquerade_classes = envelope_sender, header_sender, header_recipient
masquerade_domains =
masquerade_exceptions = root
message_size_limit = 10240000
mydestination = /etc/postfix/local-host-names
mydomain = evil-hannie.eu
myhostname = mail
mynetworks = 127.0.0.0/8
mynetworks_style = subnet
myorigin = $mydomain
newaliases_path = /usr/bin/newaliases
queue_directory = /var/spool/postfix
readme_directory = /usr/share/doc/packages/postfix/README_FILES
receive_override_options = no_address_mappings
relay_domains = $mydestination
relayhost =
relocated_maps = hash:/etc/postfix/relocated
sample_directory = /usr/share/doc/packages/postfix/samples
sender_canonical_maps = hash:/etc/postfix/sender_canonical
sendmail_path = /usr/sbin/sendmail
setgid_group = maildrop
smtp_sasl_auth_enable = no
smtp_tls_note_starttls_offer = yes
smtp_use_tls = yes
smtpd_client_restrictions =
smtpd_helo_required = no
smtpd_helo_restrictions =
smtpd_recipient_restrictions = permit_mynetworks,reject_unauth_destination
smtpd_sasl_auth_enable = yes
smtpd_sasl_local_domain =
smtpd_sasl_security_options = noanonymous
smtpd_sender_restrictions =
smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem
smtpd_tls_cert_file = /etc/postfix/ssl/smtpd.crt
smtpd_tls_key_file = /etc/postfix/ssl/smtpd.key
smtpd_tls_loglevel = 1
smtpd_tls_received_header = yes
smtpd_tls_session_cache_timeout = 3600s
smtpd_use_tls = yes
strict_8bitmime = no
strict_rfc821_envelopes = no
tls_random_source = dev:/dev/urandom
transport_maps = hash:/etc/postfix/transport
unknown_local_recipient_reject_code = 550
virtual_alias_domains = paulsexton.me.uk
virtual_alias_maps = hash:/etc/postfix/virtual
falko
8th December 2008, 12:25
Please configure Postfix as shown on http://www.howtoforge.com/perfect-server-opensuse11-p4
MiniMe
9th December 2008, 13:37
Please configure Postfix as shown on http://www.howtoforge.com/perfect-server-opensuse11-p4
done to be honest... Should i not just add his domain somewhere that allows it to send mail trough my smtp server ? :s
falko
10th December 2008, 14:53
But your main.cf is looking different. For example, where's the line
content_filter = amavis:[127.0.0.1]:10024
coming from?
MiniMe
15th December 2008, 22:07
But your main.cf is looking different. For example, where's the line
content_filter = amavis:[127.0.0.1]:10024
coming from?
thats just the antivirus shit to be honest...
anything else im missing ... ?
falko
16th December 2008, 19:56
I'd set up the system again, just following the "Perfect Server" (nothing else). Afterwards you should check if everything's working before you set up other things on the system.
edge
16th December 2008, 20:53
Or... Pay till or falko a small fee and they will look (and fix) your system!
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.