Pages

Wednesday, November 27, 2013

Configuring Sendmail to relay through Gmail SMTP

Sending email directly from the MTA (mail transfer agent) on one’s server is now considered to be faux pas. Unless you’ve got that machine configured within DNS (MX record, reverse lookup, etc), it’d likely fail most basic spam checks at the destination mail server. The complexity of the configuration increases if you’ve got the need to masquerade emails from multiple domains. Instead, the ideal approach is to relay through a central SMTP gateway for all of the outbound emails generated from your server(s).

I’ve been on Google mail hosting for a long time now and needed to configure my server to relay mail through it. Here’s a nice article that walks you through exactly what needs to be done to configure your sendmail MTA to relay through Gmail’s SMTP servers. Another similar post here.

Tuesday, November 26, 2013

List AD replication port.

AD Replication Ports
RPC endpoint mapper
135/tcp, 135/udp
Network basic input/output system (NetBIOS) name service
137/tcp, 137/udp
NetBIOS datagram service
138/udp
NetBIOS session service
139/tcp
RPC static port for AD replication
1111/TCP
RPC static port for FRS
2347/TCP
Server message block (SMB) over IP (Microsoft-DS)
445/tcp, 445/udp
Lightweight Directory Access Protocol (LDAP)
389/tcp
LDAP ping
389/udp
LDAP over SSL
636/tcp
Global catalog LDAP
3268/tcp
Global catalog LDAP over SSL
3269/tcp
Kerberos
88/tcp, 88/udp
Domain Name Service (DNS)
53/tcp, 53/udp
MOM
TCP/UDP 1270
NTP
123/udp
Remote Desktop
3389/tcp

Friday, November 15, 2013

Backup and Restore Linux OS using tar, dd command

1/ Backup Hard Disk, MBR Using dd Command

 Chắc cũng có nhiều bạn thành thạo sử dụng lệnh dd rồi nhưng mình cũng giới thiệu sơ qua cho 1 số bạn chưa biết tham khảo thêm nhé.

Trong trường hợp cần backup 1 ổ đĩa trên Linux các bạn có thể sử dụng lệnh sau:

- Backup 1 ổ cứng sang ổ cứng khác:

Mã:
dd if=/dev/hda of=/dev/hdb
- Backup ổ cứng sang file image:

Tuesday, November 12, 2013

Các kiểu Group scope

Doanin Local Group:
- Chỉ nhìn thấy trong domain chứa nó
- Chứa được user và group trong cùng hoặc khác domain
- Không thể nằm trong group khác
- Ở native Mode, Domain local group có thể là con của Domain Local Group